From 84e2c85b93a7e697d560d8bd665a7a09e263ab9c Mon Sep 17 00:00:00 2001 From: Jinal Patel Date: Thu, 9 May 2019 06:56:04 +0000 Subject: [PATCH] [FIX] stock: return wizard in multi location In `_create_returns`, the code creates a picking using `self.location_id` as destination location. When the multi location group is not active, the user has no possibility to change this field and it is correctly initialized. When the multi location groups is active, the user has this possibility. If the user empties out this field and tries to validate the return, he's faced with an error. We make this field required in the view to prevent any issues. Task-1986294 Fixes 24207 closes odoo/odoo#33463 Signed-off-by: Simon Lejeune (sle) --- addons/stock/wizard/stock_picking_return_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/wizard/stock_picking_return_views.xml b/addons/stock/wizard/stock_picking_return_views.xml index 797eab283c3..a4088dd2469 100644 --- a/addons/stock/wizard/stock_picking_return_views.xml +++ b/addons/stock/wizard/stock_picking_return_views.xml @@ -27,7 +27,7 @@ - +