From 4db88dca07c79511ad25db3425d1a24c742ccaed Mon Sep 17 00:00:00 2001 From: "Touati Djamel (otd)" Date: Tue, 11 Jul 2023 14:53:10 +0000 Subject: [PATCH] [FIX] stock: display all operation if no "restricted_picking_type_code" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Steps to reproduce the bug: - enable “package” option in inventory settings - Create a package - save and click on “Package Transfers” - Create a new transfer Problem: No operation type is displayed. Because we do a `name_search` with the following domain: `[["code","=",none]]` opw-3394868 closes odoo/odoo#128463 X-original-commit: 149af0ebf22b4575c89d6f4f875f988dc6064c07 Signed-off-by: William Henrotin (whe) Signed-off-by: Djamel Touati (otd) --- addons/stock/views/stock_picking_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml index a41389a07b7..15931f492d4 100644 --- a/addons/stock/views/stock_picking_views.xml +++ b/addons/stock/views/stock_picking_views.xml @@ -208,7 +208,7 @@ + domain="context.get('restricted_picking_type_code') and [('code', '=', context.get('restricted_picking_type_code'))] or [(1,'=',1)]"/>