From bc6c8255a99554b572df31774598160edcd197dc Mon Sep 17 00:00:00 2001 From: "Touati Djamel (otd)" Date: Mon, 19 Sep 2022 14:04:09 +0000 Subject: [PATCH] [FIX] purchase: remove extra filter domain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Steps to reproduce the bug: - create a new product “p1” - Create a purchase order with “P1” → confirm it - Click on “Purchase history” Problem: No purchase order is displayed for this product, whereas we have a confirmed PO. Because the partner id is formatted as a string and added to the domain, so when the `web_search_read` function is executed, it will return an empty result because the id is supposed to be a number instead of a string: https://github .com/odoo/odoo/blob/master/addons/web/models/models.py#L62 Solution: The filter on the vendor can be removed because it's already added when calling the action: https://github.com/odoo/odoo/blob/678bc958fafd5502a61ce54069b13160ad37d2d4/addons/purchase/models/purchase.py# L1240 opw-2976152 closes odoo/odoo#100892 X-original-commit: 9431adc5bfce525bd3a9ec4c3f7215f2ee312841 Signed-off-by: Arnold Moyaux (arm) Signed-off-by: Djamel Touati (otd) --- addons/purchase/views/purchase_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml index 7ab3486f655..46b970ba22d 100644 --- a/addons/purchase/views/purchase_views.xml +++ b/addons/purchase/views/purchase_views.xml @@ -764,7 +764,7 @@ - +