summaryrefslogtreecommitdiff
path: root/addons/web/static/src/css
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2015-06-10 16:06:10 +0200
committerNicolas Lempereur <nle@odoo.com>2015-06-12 15:08:54 +0200
commit3269ad8f488d2dc28763c2d2a2bfae1548db9ee6 (patch)
tree6d21a50a73287f5252aa12f56140a96b50a5dc2c /addons/web/static/src/css
parent5ada7bb0d018bbd524c6b0201b27a58cf9fe65d2 (diff)
[FIX] fields: throw truthy values on old api field
In 7.0, a field overriding an inherited model would overwrite all the previously set field attributes. In v8 the new API allow us to keep previous attribute, and only overwrite attributes of our wish. Following the commit 7b1ef708 (october 2014) an old api field overriding could conserve previous attributes values in some cases (if the new value is falsy (None, "", 0, False, (), {}, [], ...) when it should not. It was partly an optimization to diminish the size of orm registries dictionaries to save memory (this patch has been tested with all odoo modules and added +/- 3M). This commit (proposed by rco) should overwrite falsy value (so the behavior of v7 for old api fields overwritting is re-introduced) and get back the behavior of old api in V7. closes #7035 opw-639712
Diffstat (limited to 'addons/web/static/src/css')
0 files changed, 0 insertions, 0 deletions