diff options
| author | jbm-odoo <jbm@odoo.com> | 2020-06-05 17:13:53 +0200 |
|---|---|---|
| committer | jbm-odoo <jbm@odoo.com> | 2020-06-15 15:51:20 +0200 |
| commit | d6a23144d5c5b85c2a02097bcbb3e006a9c2c52a (patch) | |
| tree | 2eb930372884160d675497ce415279374d21b48a /addons/timer/static/src/js/timer_toggle_button.js | |
| parent | e7dda3fab002f5db930b4af340787177d597d59e (diff) | |
[MOV] timer: Move to Enterprise
taskId: 2217930
Diffstat (limited to 'addons/timer/static/src/js/timer_toggle_button.js')
| -rw-r--r-- | addons/timer/static/src/js/timer_toggle_button.js | 3 |
1 files changed, 1 insertions, 2 deletions
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] }); |
