summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorAdrien Dieudonne <adr@odoo.com>2017-04-14 11:01:22 +0200
committerAdrien Dieudonne <adr@odoo.com>2017-04-14 14:49:09 +0200
commit148f7b4597304c4d96d24c0f18787cdd43624fb6 (patch)
tree040b5f1811b984f94123639bf43a49c0f3e2bb47 /addons/web/static/src/js/views/basic
parente92ae40d71d748cd124f04656359413f038e94cc (diff)
[FIX] web: Form: *_view_ref in context not passed
For one2many and many2many fields, you have several ways for specifying a view other than the default one: - to write the arch of the view in the field tag Example: <field name="many2many"> <tree> ... </tree> </field> - to write xmlid of the view in a specific key (*_view_ref) in the context of the field. Example: <field name="many2many" context="{'tree_view_ref':'module.tree_view_ref'}"> Before this fix, the second case didn't work. the default view was loaded instead of the one passed in the context. In fact, this context is evaluated after the loading of the record but we need some static keys to load the view (before fetching the record).
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions