diff options
| author | Khoi Nguyen <bng@odoo.com> | 2017-10-18 13:32:16 +0200 |
|---|---|---|
| committer | Khoi Nguyen <bng@odoo.com> | 2017-10-18 16:52:41 +0200 |
| commit | 3f962dbe631ac26e71d4df8263771594b01359ce (patch) | |
| tree | 46448ab0a4c08bea0939834eb926999b68ac97bb /addons/web/static/src/js/report/client_action.js | |
| parent | 28491aac45dc912696c1fcc57a50e3ec98906336 (diff) | |
[FIX] web,*: replace core.debug by config.debug
Diffstat (limited to 'addons/web/static/src/js/report/client_action.js')
| -rw-r--r-- | addons/web/static/src/js/report/client_action.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/report/client_action.js b/addons/web/static/src/js/report/client_action.js index 60265c0a49d..cf6f4c94dfe 100644 --- a/addons/web/static/src/js/report/client_action.js +++ b/addons/web/static/src/js/report/client_action.js @@ -1,6 +1,7 @@ odoo.define('report.client_action', function (require) { 'use strict'; +var config = require('web.config'); var core = require('web.core'); var ControlPanelMixin = require('web.ControlPanelMixin'); var session = require('web.session'); @@ -108,7 +109,7 @@ var ReportAction = Widget.extend(ControlPanelMixin, { _update_control_panel_buttons: function () { this.$buttons.filter('div.o_report_edit_mode').toggle(this.in_edit_mode); this.$buttons.filter('div.o_report_no_edit_mode').toggle(! this.in_edit_mode); - this.$buttons.filter('div.o_edit_mode_available').toggle(core.debug && this.edit_mode_available && ! this.in_edit_mode); + this.$buttons.filter('div.o_edit_mode_available').toggle(config.debug && this.edit_mode_available && ! this.in_edit_mode); }, /** |
