odoo/openerp
Raphael Collet 3adbb49ec0 [FIX] ir_model: fix create/update/delete custom fields
Creating custom fields would crash on a model that has a related field without
string.  The crash was caused by the field not being set up, and method
BaseModel._field_create() violating a non-null constraint on the field string.
This has been fixed by setting up fields before updating ir_model_fields.

Deleting a custom field could also cause trouble when that field is inherited
in a child model.  In that case, the registry was simply no longer consistent.
The fix is to reload completely the registry.

The modification of custom fields was not reflected on field objects.  The fix
applies changes on fields before updating columns accordingly.
2014-11-04 14:52:13 +01:00
..
addons [FIX] ir_model: fix create/update/delete custom fields 2014-11-04 14:52:13 +01:00
cli [FIX] When using "--stop-after-init", set the return code correctly. A non zero return code reflect the number of databases that fail to load/update 2014-10-24 16:24:50 +02:00
conf [MERGE] openerp.pooler is deprecated. 2013-03-27 17:40:45 +01:00
modules [IMP] core: manage registries via an LRU. 2014-10-29 18:28:07 +01:00
osv [IMP] use model._fields instead of model._all_columns to cover all fields 2014-11-04 13:47:57 +01:00
report [MERGE] forward port of branch saas-3 up to c89d1a0 2014-10-23 13:08:44 +02:00
service [FIX] core: correct cron thread registry iteration 2014-10-30 11:05:07 +01:00
tests [IMP] doc: add testing reference and improve docstrings 2014-10-09 15:38:36 +02:00
tools [IMP] use model._fields instead of model._all_columns to cover all fields 2014-11-04 13:47:57 +01:00
workflow [IMP] workflow: add sequence for ordering workflow transitions (split/join mode especially for XOR) 2014-08-05 12:26:28 +02:00
PKG-INFO [REM] netrpc: KILL EVERYBODY 2013-02-21 13:18:25 +01:00
__init__.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
api.py [FIX] models: do not prefetch fields to recompute, and recompute once only 2014-10-13 12:38:59 +02:00
exceptions.py [ADD] doc: new documentation, with training tutorials, and new scaffolding 2014-08-22 17:51:20 +02:00
fields.py [IMP] use model._fields instead of model._all_columns to cover all fields 2014-11-04 13:47:57 +01:00
http.py [FIX] corrected a word in a comment 2014-11-03 10:19:15 +01:00
import_xml.rng [MERGE] ir-ui-view split active and show_customize 2014-08-31 16:56:44 +02:00
loglevels.py [REF] logging: removed pseudo log-level TEST. 2013-03-26 16:58:44 +01:00
models.py [IMP] use model._fields instead of model._all_columns to cover all fields 2014-11-04 13:47:57 +01:00
netsvc.py [FIX] Packaging: Wndows: wrong handler used when logging to file 2014-09-19 11:17:13 +02:00
pooler.py [IMP] registry: avoid every direct access registry.db, and rename attribute as registry._db 2014-04-09 15:35:15 +02:00
release.py [REL] Odoo 8.0 2014-09-18 12:11:18 +02:00
sql_db.py [FIX] sql_db: don't log dsn with unmasked passwords 2014-10-28 14:49:57 +01:00