summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-05-28 13:33:39 +0000
committerMartin Trigaux <mat@odoo.com>2019-05-28 14:26:29 +0000
commit44d11fe7771265ea88b299c722ff4cc00e349394 (patch)
treed1ecf5dfe561aef495c6c234d884c6ed610e346f /addons/web/static/tests/fields/basic_fields_tests.js
parentaf8af70fd967cdc3ba4d306e329d147ddd818911 (diff)
[FIX] fields: inherit context_dependent from parent fields
If a field is inherited from another model, the attribute context_dependent was not propagated correctly. Example of bug: >>> product = self.env['product.product'].search([], limit=1) >>> product.name 'Whiteboard Pen' >>> product.with_context(lang='fr_FR').name 'Whiteboard Pen' # cache used >>> template = product.product_tmpl_id >>> template.name 'Whiteboard Pen' >>> template.with_context(lang='fr_FR').name 'Marqueur pour Tableau Blanc' >>> product._fields['name'].context_dependent False >>> template._fields['name'].context_dependent True Fixes odoo/odoo#33641 Closes odoo/odoo#33722 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions