summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2018-03-07 18:07:49 +0100
committerJeremy Kersten <jke@odoo.com>2018-03-08 10:22:21 +0100
commitb4f8ca0a34c9d30a1bbbf4dfced5848d200cb66c (patch)
treefe522eb02d5fb5a32cd9a3806fc41cfbd74f12fe /addons/web/static/src/js/views/basic/basic_controller.js
parent9fdbbb816cfd6b8a81ab807244033d16de78107d (diff)
[FIX] base: fix dev mode for inherits view
Before this commit, model that create ir_ui_view via _inheritS was ignored in --dev xml The arch_fs was not set. Because it was not ir.ui.view, and because xml_id was suffixed by _ir_ui_view. Now we manage the case of inherits. So if model model.name inherits ir_ui_view class MyClass(models.Model): _name = 'model.name' _inherits = {'ir.ui.view': 'view_id'} view_id = fields.Many2one('ir.ui.view', string='View', required=True, ondelete="cascade") ... <record name='model.name' xmlid='pok'> <field name='arch' type='xml'>content</field> </record> will be read from xml in dev mode. parsing the xml file for xml_id pok_ir_ui_view and pok. The orm by default will add this suffix. The 'dynamic' view created when we update the groups is a special case, which we don't want the arch_fs for dev mode because the xml only contains by default and an empty container and btw the imd was wrong since we had the res.group model a xml_id into the _inverse_arch. The page create via a template (method new_page) will automatically remove the arch_fs since we don't want to see the empty container if we are in dev_mode.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions