Skip to content
Snippets Groups Projects
Commit a944ce9b authored by Harpritsinh Sisodiya's avatar Harpritsinh Sisodiya Committed by Jeremy Kersten
Browse files

[FIX] web_editor: fix oe_structure view that are not in extention mode


Issue occurs due to the way we compute the default value in base ir ui view.
The method _compute_defaults don't set extention mode under some condition
even if we provide an inherit_id view.

This commit double fix it, we use now self.env['ir.ui.view'] to create the
new view and so always compute the mode based on 'if inherit id or not'.
Second fixes is to explicitely set mode manually as 'extention'.

before commit:
when you drop snippet to blog sidebar and click save button.
The changes of user is not visible in sidebar because view created in mode
'normal' and not 'extention'

task-2311520
closes odoo/odoo#55908

Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
Co-authored-by: default avatarjpr-odoo <jpr@openerp.com>
parent bedbc577
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment