From 48e0afcf95dd3263bd226066b4f1fc4aa450ccd5 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Mon, 25 Aug 2014 16:12:51 +0200 Subject: [PATCH] [FIX] do not use ir.ui.view's arch_fs version of updated views in --dev mode --- openerp/addons/base/ir/ir_ui_view.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openerp/addons/base/ir/ir_ui_view.py b/openerp/addons/base/ir/ir_ui_view.py index 87c5e798543..035645d293e 100644 --- a/openerp/addons/base/ir/ir_ui_view.py +++ b/openerp/addons/base/ir/ir_ui_view.py @@ -330,6 +330,11 @@ class view(osv.osv): if context is None: context = {} + # If view is modified we remove the arch_fs information thus activating the arch_db + # version. An `init` of the view will restore the arch_fs for the --dev mode + if 'arch' in vals and 'install_mode_data' not in context: + vals['arch_fs'] = False + # drop the corresponding view customizations (used for dashboards for example), otherwise # not all users would see the updated views custom_view_ids = self.pool.get('ir.ui.view.custom').search(cr, uid, [('ref_id', 'in', ids)])