diff options
| author | Julien Mougenot <jum@odoo.com> | 2020-08-06 10:17:29 +0000 |
|---|---|---|
| committer | Julien Mougenot <jum@odoo.com> | 2020-08-10 07:55:13 +0000 |
| commit | 90aa4b3ba45a781d348d2e2a9433643bcd125385 (patch) | |
| tree | e14bf2952b54bd99e6e0f38e6407f48e4c68b256 | |
| parent | f9ddf1b110531cc443cc9d4aaffdf832c7a7189a (diff) | |
[FIX] web: Correctly transmit fields to the control panel
Before this commit, the "fields" object given to the control panel was
altered by the view (e.g. dashboard populates it with its aggregates).
As a result the control panel and its subcomponents had an altered
object with more or less fields than expected.
Now, the initial "fields" object is given to avoid such problems.
Task 2312074
closes odoo/odoo#55640
X-original-commit: 472b314614dc3dd9db880f4cb60c2eda89cce6b4
Related: odoo/enterprise#12310
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
| -rw-r--r-- | addons/web/static/src/js/views/abstract_view.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/abstract_view.js b/addons/web/static/src/js/views/abstract_view.js index 127b2a10c45..96767858f79 100644 --- a/addons/web/static/src/js/views/abstract_view.js +++ b/addons/web/static/src/js/views/abstract_view.js @@ -241,7 +241,7 @@ var AbstractView = Factory.extend({ const controlPanelProps = { action: params.action, breadcrumbs: params.breadcrumbs, - fields: this.fields, + fields, searchMenuTypes: params.searchMenuTypes, view: this.fieldsView, views: params.action.views && params.action.views.filter( |
