diff options
| author | Aaron Bohy <aab@odoo.com> | 2017-04-21 08:48:35 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-25 08:07:17 +0200 |
| commit | f5bfa3d3b653c8ec8a9a1820eeff995a7f954ca9 (patch) | |
| tree | 1cf332dc47268bc1006316d0d5d73b41189d9806 /addons/web/static/src/js/views/abstract_view.js | |
| parent | 6e850085042ee0132157823a97da8ffe47a9279e (diff) | |
[FIX] web: FormView: don't modify record's context
Before this rev., some keys were added to the context of a record
if there were x2many fields in the form view with a context
defined on their node (containing *_view_ref keys, specifying the
fields_view to load to display the relational data). Those keys
should not be added to the main record's context, and it may cause
errors (e.g. click on the 'Procurements' stat button in the Product
form view).
Diffstat (limited to 'addons/web/static/src/js/views/abstract_view.js')
| -rw-r--r-- | addons/web/static/src/js/views/abstract_view.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/abstract_view.js b/addons/web/static/src/js/views/abstract_view.js index e1066e56e92..fdb029da6c3 100644 --- a/addons/web/static/src/js/views/abstract_view.js +++ b/addons/web/static/src/js/views/abstract_view.js @@ -102,6 +102,8 @@ var AbstractView = Class.extend({ if (params.modelName) { this.loadParams.modelName = params.modelName; } + + this.userContext = params.userContext; }, //-------------------------------------------------------------------------- |
