diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-08-21 14:13:15 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-08-21 14:13:15 +0200 |
| commit | c619b19f660459ea5311d010e5aa4e11de493689 (patch) | |
| tree | 0c0aa636fc433e5cac824f5436833b9db8cd4586 /odoo/modules | |
| parent | e80f853ab38fb4caef530ccbc23d65e97045d6a0 (diff) | |
Revert "[FIX] manual creation of serialized field from the interface"
Non applicable since b0646f9d2c983481f20bea31f8f6427bbfccb245.
This reverts commit 03395ea103f1e933576bad2a32ae7842818e7dfd.
Diffstat (limited to 'odoo/modules')
| -rw-r--r-- | odoo/modules/registry.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/odoo/modules/registry.py b/odoo/modules/registry.py index bd22d12a94c..4c23ea5fd03 100644 --- a/odoo/modules/registry.py +++ b/odoo/modules/registry.py @@ -215,15 +215,9 @@ class Registry(Mapping): if self._fields_by_model is None: # Query manual fields for all models at once self._fields_by_model = dic = defaultdict(dict) - id2name = {} cr.execute('SELECT * FROM ir_model_fields WHERE state=%s', ('manual',)) for field in cr.dictfetchall(): dic[field['model']][field['name']] = field - id2name[field['id']] = field['name'] - # compute the attribute 'sparse' - for fields in dic.values(): - for name, field in fields.items(): - field['sparse'] = id2name.get(field['serialization_field_id']) return self._fields_by_model[model_name] def do_parent_store(self, cr): |
