From ac1e5dd3d856d1097f91de0d121787948ef40553 Mon Sep 17 00:00:00 2001 From: MerlinGuillaume Date: Mon, 30 Oct 2023 15:22:37 +0100 Subject: [PATCH] [FIX] base: add a smart button on category related to partners MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) Signed-off-by: Guillaume Merlin (megu) --- odoo/addons/base/views/res_partner_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/addons/base/views/res_partner_views.xml b/odoo/addons/base/views/res_partner_views.xml index a9ca458e15f..90cf121322d 100644 --- a/odoo/addons/base/views/res_partner_views.xml +++ b/odoo/addons/base/views/res_partner_views.xml @@ -431,7 +431,7 @@ - +