odoo/openerp
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
..
addons [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
cli cleanups 2012-12-16 02:52:14 +01:00
conf cron cleanup, back to the Kernighan KISS roots 1min poll time, rely only on database, multiprocess/multiserver ready. 2012-12-09 18:04:47 +01:00
modules [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
osv [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
report [IMP] more augmented assignments 2012-12-14 14:44:55 +01:00
service [FIX] incorrect docstrings or docstring param names not matching actual param names 2012-12-14 14:07:58 +01:00
tests [MERGE] trunk-acl-thu (check read/write access restrictions on fields with a groups attribute) 2012-12-17 11:15:28 +01:00
tools [MERGE] trunk-style-improvements-xmo (Python stylistic improvement) 2012-12-17 12:01:50 +01:00
workflow [REM] unnecessary parens 2012-12-14 13:38:03 +01:00
.apidoc API doc: move settings file from bin/ to openerp/ 2011-06-23 12:08:07 +03:00
PKG-INFO [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
__init__.py netsvc, netrpc, wizardcleanup 2012-12-09 19:15:36 +01:00
exceptions.py [FIX] xmlrpc: handle old/new exceptions with old/new clients. 2011-09-30 10:50:12 +02:00
import_xml.rng [IMP] rng: forbid redundant @type for menuitem, now inferred from the action type + minor cleanup 2012-08-22 16:49:46 +02:00
loglevels.py [FIX] incorrect docstrings or docstring param names not matching actual param names 2012-12-14 14:07:58 +01:00
netsvc.py [REV] close_socket is back in netsvc.py 2012-12-10 14:21:33 +01:00
pooler.py [IMP] registry: whene deleting a registry, also delete its cache and cron. 2011-07-13 17:35:21 +02:00
release.py [MERGE] base: fix some address formats and some English 2012-09-11 17:07:24 +02:00
run_tests.py [IMP] Added missing vim mode lines 2011-11-22 09:58:48 +01:00
sql_db.py [REM] trailing semicolons 2012-12-14 13:43:10 +01:00