We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25d4583 commit d4a608cCopy full SHA for d4a608c
src/base/17.0.1.3/attr_domains2expr.py
@@ -58,14 +58,14 @@ def adapt_view(cr, view_xmlid):
58
IrUiView = util.env(cr)["ir.ui.view"].with_context(lang=lang)
59
```
60
"""
61
- vid = util.ref(view_xmlid)
+ vid = util.ref(cr, view_xmlid)
62
IrUiView = util.env(cr)["ir.ui.view"]
63
view = IrUiView.browse(vid)
64
65
# disable view to avoid it being applied to the parent arch
66
view.active = False
67
# get combined arch of the parent view
68
- comb_arch = view.inherit_id._get_combined_arch()
+ comb_arch = view.inherit_id._get_combined_arch() if view.inherit_id else None
69
70
# update current view arch
71
new_arch = etree.fromstring(view.arch_db)
0 commit comments