summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_view.js
diff options
context:
space:
mode:
authorDavid Monjoie <dmo@odoo.com>2019-06-05 14:27:32 +0000
committerVincent Schippefilt <vsc@odoo.com>2019-07-30 06:37:23 +0000
commit307db300670e2c9c3cb8cfa11b2e5e63edd8aa69 (patch)
treecb459aeab47df2effc6f806215950b3b37709368 /addons/web/static/src/js/views/basic/basic_view.js
parent321a3699ed634287010c4ab0701bf6f28704c250 (diff)
[FIX] web: add view id in optional fields local storage key
Since the renderer does not know the view id, we moved the local storage key computation up to the basic controller, which makes more sense since the renderer is supposed to be inert. The _processColumns function had to be moved in willStart however, since it now needs the controller to respond to the trigger_up and the controller is not present during the init of the renderer. closes odoo/odoo#34051 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_view.js')
-rw-r--r--addons/web/static/src/js/views/basic/basic_view.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/basic/basic_view.js b/addons/web/static/src/js/views/basic/basic_view.js
index 008bbcf8775..428378d69ab 100644
--- a/addons/web/static/src/js/views/basic/basic_view.js
+++ b/addons/web/static/src/js/views/basic/basic_view.js
@@ -48,6 +48,7 @@ var BasicView = AbstractView.extend({
this.controllerParams.archiveEnabled = 'active' in this.fields;
this.controllerParams.hasButtons =
'action_buttons' in params ? params.action_buttons : true;
+ this.controllerParams.viewId = viewInfo.view_id;
this.loadParams.fieldsInfo = this.fieldsInfo;
this.loadParams.fields = this.fields;