Skip to content

[18.0][FIX] mail_gateway_whatsapp: Fix Owl Crash on template view - #1884

Open
DevOpsMBAConsultings wants to merge 1 commit into
OCA:18.0from
DevOpsMBAConsultings:18.0-fix-template-view-crash
Open

[18.0][FIX] mail_gateway_whatsapp: Fix Owl Crash on template view#1884
DevOpsMBAConsultings wants to merge 1 commit into
OCA:18.0from
DevOpsMBAConsultings:18.0-fix-template-view-crash

Conversation

@DevOpsMBAConsultings

Copy link
Copy Markdown

Module: mail_gateway_whatsapp

When opening an approved template and clicking the "Variables" notebook page, the Odoo 18 Web Client completely crashes with:
OwlError: An error occured in the owl lifecycle... Cannot read properties of undefined (reading '1') at get string ... at SelectionField.template

Cause: The variable_ids list view has model, line_type, and name marked as column_invisible="True". In Odoo 17/18, if a Selection field is column_invisible, the options are not sent to the frontend. Owl still tries to parse the SelectionField and crashes when the choices are empty.

Fix: Added widget="char" to the column_invisible="True" fields to bypass the SelectionField rendering entirely and resolve the Owl crash.

@OCA-git-bot OCA-git-bot added series:18.0 mod:mail_gateway_whatsapp Module mail_gateway_whatsapp labels Jul 9, 2026
@pedrobaeza pedrobaeza added this to the 18.0 milestone Jul 9, 2026
@pedrobaeza

Copy link
Copy Markdown
Member

Please check CI.

@pedrobaeza pedrobaeza changed the title [FIX] mail_gateway_whatsapp: Fix Owl Crash on template view [18.0][FIX] mail_gateway_whatsapp: Fix Owl Crash on template view Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:mail_gateway_whatsapp Module mail_gateway_whatsapp series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants