From 09da295fd8a5f4f40178b83e9c4e86bcc9a9bc28 Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Tue, 11 May 2021 07:24:14 +0000 Subject: [FIX] purchase: speed up search for purchase_vendor_bill_id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When partner is not selected, Odoo sends name_search request `[..., ('partner_id', 'child_of', [False])]`. It's not obvious what does such domain mean ( see #70584 ). This commit clarifies what do we expect to get: we want all records without restrictions on `partner_id` value. This also fixes performance issue because domain leaf `('partner_id', 'child_of', [False])` is converted to where-clause `.partner_id in ` --- opw-2524010 closes odoo/odoo#70842 X-original-commit: 39e0f1fb0f60f309be7f65562911b1236167dce7 Signed-off-by: Rémy Voet Signed-off-by: Ivan Yelizariev // IEL --- addons/purchase/views/account_move_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/views/account_move_views.xml b/addons/purchase/views/account_move_views.xml index 565cab9d442..c24f8140207 100644 --- a/addons/purchase/views/account_move_views.xml +++ b/addons/purchase/views/account_move_views.xml @@ -14,7 +14,7 @@ -- cgit v1.2.3