[FIX] web: update domain (selector) when '(not) in' operator used
Steps to reproduce: - Install mass_mailing module (for test purpose) - Create a new mailing and change `Recipients` to `contact` - Add a new node in the domain (by clicking on +) and set : Field => `Zip`, Operator => `in`, Value => `123` - click on + next to value Issue: Domain is not updated (same issue with `not in`). Cause: When adding a new value to the domain, a div is added with the value and a cross button (to remove the value from domain). The button have a `t-on-click` attribute that call a function (removeTag(tag_index)) and therefore as soon as the div is added, the function is called. Solution: Use `() => func(arg)` syntax instead to be able to call the function with arguments only when button is clicked. opw-3099583 closes odoo/odoo#111714 X-original-commit: f9a9f2da88a68040642231db2489e134d1f8096a Signed-off-by: Michaël Mattiello <mcm@odoo.com> Signed-off-by: Nasreddin Boulif (bon) <bon@odoo.com>
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@
|
||||
role="img"
|
||||
aria-label="Remove tag"
|
||||
title="Remove tag"
|
||||
t-on-click="removeTag(tag_index)"
|
||||
t-on-click="() => this.removeTag(tag_index)"
|
||||
/>
|
||||
</span>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user