summaryrefslogtreecommitdiff
path: root/addons/web/static
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2016-09-09 15:31:33 +0200
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit54d4c73af4ad05c7640d28c1892247c9538b8017 (patch)
tree13742bb4e5897ad8b989c34ec59f27a37e942ff1 /addons/web/static
parentc5e00dc802cdbc2d66891403daf573d82884a32c (diff)
[FIX] web: update view manager to delay call to render_buttons in form view
Diffstat (limited to 'addons/web/static')
-rw-r--r--addons/web/static/src/js/view_manager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_manager.js b/addons/web/static/src/js/view_manager.js
index dd6c2354156..2c792e393d7 100644
--- a/addons/web/static/src/js/view_manager.js
+++ b/addons/web/static/src/js/view_manager.js
@@ -233,10 +233,10 @@ var ViewManager = Widget.extend(ControlPanelMixin, {
var self = this;
var view_controller = this.active_view.controller;
var view_fragment = this.active_view.$fragment;
- var view_control_elements = this.render_view_control_elements();
// Show the view
return $.when(view_controller.do_show(view_options)).done(function () {
+ var view_control_elements = self.render_view_control_elements();
// Prepare the ControlPanel content and update it
var cp_status = {
active_view_selector: '.o_cp_switch_' + self.active_view.type,