diff options
Diffstat (limited to 'addons/web/static/src/js/chrome/control_panel.js')
| -rw-r--r-- | addons/web/static/src/js/chrome/control_panel.js | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/addons/web/static/src/js/chrome/control_panel.js b/addons/web/static/src/js/chrome/control_panel.js index 8be394205d5..98ce7814b7a 100644 --- a/addons/web/static/src/js/chrome/control_panel.js +++ b/addons/web/static/src/js/chrome/control_panel.js @@ -10,32 +10,32 @@ odoo.define('web.ControlPanelMixin', function (require) { * we get the time to refactor the control panel. * * For example, here is what a typical client action would need to do to add - * support for a control panel with some buttons: + * support for a control panel with some buttons:: * - * var ControlPanelMixin = require('web.ControlPanelMixin'); + * var ControlPanelMixin = require('web.ControlPanelMixin'); * - * var SomeClientAction = Widget.extend(ControlPanelMixin, { - * ... - * start: function () { - * this._renderButtons(); - * this._updateControlPanel(); + * var SomeClientAction = Widget.extend(ControlPanelMixin, { * ... - * }, - * do_show: function () { - * ... - * this._updateControlPanel(); - * }, - * _renderButtons: function () { - * this.$buttons = $(QWeb.render('SomeTemplate.Buttons')); - * this.$buttons.on('click', ...); - * }, - * _updateControlPanel: function () { - * this.update_control_panel({ - * breadcrumbs: this.action_manager.get_breadcrumbs(), - * cp_content: { - * $buttons: this.$buttons, - * }, - * }); + * start: function () { + * this._renderButtons(); + * this._updateControlPanel(); + * ... + * }, + * do_show: function () { + * ... + * this._updateControlPanel(); + * }, + * _renderButtons: function () { + * this.$buttons = $(QWeb.render('SomeTemplate.Buttons')); + * this.$buttons.on('click', ...); + * }, + * _updateControlPanel: function () { + * this.update_control_panel({ + * breadcrumbs: this.action_manager.get_breadcrumbs(), + * cp_content: { + * $buttons: this.$buttons, + * }, + * }); */ var ControlPanelMixin = { need_control_panel: true, |
