diff options
| author | Mohammed Shekha <msh@odoo.com> | 2020-01-22 12:31:47 +0000 |
|---|---|---|
| committer | Mohammed Shekha <msh@odoo.com> | 2020-01-22 12:35:04 +0000 |
| commit | 9dfb1262a57fee05502aef6b7f67988a2045b185 (patch) | |
| tree | 968fdaf6005d946b407a7f6f3c9c17623ca2bb7e /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 79e6d9f93f75e068f76260ac6cfce221e623dc92 (diff) | |
[IMP] web: do not set text-muted on boolean_toggle click
currently if boolean_toggle widget is inside listview and if it is clicked and
set to false then listview row text set to text-muted, we want to remove this
behaviour as it is inconsistent and breaks any decoration-xxx set on the
treeview.
task-2179066
closes odoo/odoo#43754
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
| -rw-r--r-- | addons/web/static/src/js/fields/basic_fields.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index 6b2e9cbe7c7..3be9b68cd0d 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -2430,7 +2430,6 @@ var BooleanToggle = FieldBoolean.extend({ _onClick: function (event) { event.stopPropagation(); this._setValue(!this.value); - this.$el.closest(".o_data_row").toggleClass('text-muted', this.value); }, }); |
