Files
odoo_source/odoo/addons
MerlinGuillaume ac1e5dd3d8 [FIX] base: add a smart button on category related to partners
When we add a smart button on a contact tag related to contacts, the
button adds a default search filter that hides the related records

Steps to reproduce:
1. Install Contacts and Studio
2. Go to Contacts > Configuration > Contact Tags
3. Open tag "Vendor / Desk Manufacturers"
4. Toggle Studio
5. Add a button (at the top right of the form) related to field "Tags
   (Contact)"
6. Close Studio
7. Click on the button
8. A list view of the related contacts opens but there is a filter that
   hides the records

Solution:
Remove the `filter_domain` attribute on the field category_id and
replace it by the `operator` attribute in order to use the raw value in
the domain

Problem:
In `_getFieldDomain`, we replace the `self` in the domain by the
stringified id which essentially checks for a category that has a name
containing the id

opw-3471959

closes odoo/odoo#140564

X-original-commit: 18640a2ddddcf2ef90948295a41b0d7d30ec09e3
Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>
Signed-off-by: Guillaume Merlin (megu) <megu@odoo.com>
2023-11-02 12:03:52 +00:00
..
2023-09-27 11:33:01 +00:00
2023-06-12 22:39:26 +02:00
2023-06-12 22:39:26 +02:00
2023-06-12 22:39:26 +02:00
2023-06-12 22:39:26 +02:00
2023-06-12 22:39:26 +02:00