odoo/openerp/modules
Olivier Dony 9f77d2e2f4 [FIX] orm,registry: properly check m2o FKs during model update + fix some models `auto_init`ed multiple times
The case where no constraint existed at all was not working,
and after fixing it, the ORM started to re-create the same
constraints multiple times for some modules. This was for
models that are split within a module (such as res.users in
base, which is made of several small classes): all the
partial models were going through _auto_init instead
of only the final one - doing useless extra work.
      
Unfortunately establishing the FK happens before the
XML data files are loaded, so a number of FK and
NOT NULL constraints failed to apply due to missing
tables/records. base.sql had to be extended a bit
to cover these cases in a minimalist fashion

bzr revid: odo@openerp.com-20121217214645-av9n003yzterhujw
2012-12-17 22:46:45 +01:00
..
__init__.py [ADD] test cases for export of simple fields 2012-07-23 17:03:06 +02:00
db.py [FIX] module: do not recreate categories when updating modules 2012-11-28 19:37:01 +01:00
graph.py [REV] reverted install-all commit (vmt@openerp.com-20121128142106-pdkcruhyz0sjltk8) 2012-11-29 15:07:45 +01:00
loading.py [IMP] loading.py: lint cleanup - unused code 2012-12-17 16:16:26 +01:00
migration.py [IMP] openerp.{modules,osv}: _logger with fully qualified module name. 2012-01-24 13:42:52 +01:00
module.py [IMP] cli first command testjs 2012-12-09 03:46:18 +01:00
registry.py [FIX] orm,registry: properly check m2o FKs during model update + fix some models `auto_init`ed multiple times 2012-12-17 22:46:45 +01:00