[FIX] module loading: mark module as initialized *after* the data files have been...
authorChristophe Simonis <chs@openerp.com>
Fri, 18 Apr 2014 14:15:50 +0000 (16:15 +0200)
committerChristophe Simonis <chs@openerp.com>
Fri, 18 Apr 2014 14:15:50 +0000 (16:15 +0200)
commitc3cf8000e6cb22ecf71e3b25b3950e5ce9ae01bf
treecb762fdbd965e476e7d0c034a871656fc9eaa2ae
parent04c993bddf9f2fbdd5b1f7834b9f46285c3b2f9d
[FIX] module loading: mark module as initialized *after* the data files have been loaded

When the registry is updating, the view verification only validates the views
from initialized modules. Not taking the current module allow update of views
that have also an inherited view in the same module. The verification of the base view
must not try to apply the old inherited view against it as it may not be applicable
anymore.

After module update, we re-validate all the views of this module. This is needed because
a module can declare two (or more) inherited views that are correct when applyed alone,
but not when combined with others.

bzr revid: chs@openerp.com-20140418141550-7b57b1xl4fx0rgqq
openerp/addons/base/ir/ir_ui_view.py
openerp/modules/loading.py