From d6a23144d5c5b85c2a02097bcbb3e006a9c2c52a Mon Sep 17 00:00:00 2001 From: jbm-odoo Date: Fri, 5 Jun 2020 17:13:53 +0200 Subject: [MOV] timer: Move to Enterprise taskId: 2217930 --- addons/timer/static/src/js/timer_toggle_button.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'addons/timer/static/src/js/timer_toggle_button.js') diff --git a/addons/timer/static/src/js/timer_toggle_button.js b/addons/timer/static/src/js/timer_toggle_button.js index 78274e05e0c..d189d996502 100644 --- a/addons/timer/static/src/js/timer_toggle_button.js +++ b/addons/timer/static/src/js/timer_toggle_button.js @@ -52,12 +52,11 @@ const TimerToggleButton = FieldToggleBoolean.extend({ */ _onToggleButton: async function (event) { const context = this.record.getContext(); - const prevent_deletion = this.attrs.options && this.attrs.options.prevent_deletion || false; event.stopPropagation(); const result = await this._rpc({ model: this.model, method: this._getActionButton(), - context: $.extend({}, context, {prevent_deletion: prevent_deletion}), + context: context, args: [this.res_id] }); -- cgit v1.2.3