[FIX] registry: use a unique list of models to load per module
authorOlivier Dony <odo@openerp.com>
Fri, 26 Aug 2011 16:17:36 +0000 (18:17 +0200)
committerOlivier Dony <odo@openerp.com>
Fri, 26 Aug 2011 16:17:36 +0000 (18:17 +0200)
commit3f00bfc405a75e8980505dbc3aa2d731361962a2
tree9550397ab8b00ec779ef13d78efda885e0f8d809
parente03849bb35b732e273ba52137463a5e21f9f6e79
[FIX] registry: use a unique list of models to load per module

This is necessary to preserve the model loading order
as defined in the module. This was broken when the
metaclass was introduced to make the explicit model
constructor call optional.
One consequence is that the order in which the classes
are declared in the module really defines their
initialization order, even if the constructors are
later called explcitly in a different order.
This latter case should be fairly rare, and easy to
fix too - simply putting the class declaration in the
right order.

bzr revid: odo@openerp.com-20110826161736-lgnpurtbcqtbseey
openerp/modules/registry.py
openerp/osv/orm.py