From eb5a352a58ef0ad55e301c96c963dc223445abf7 Mon Sep 17 00:00:00 2001 From: svs-odoo Date: Mon, 27 Nov 2023 11:12:04 +0000 Subject: [PATCH] [FIX] stock: create picking on mobile Before this commit, it was not possible to create a new picking on mobile if this picking has multiple moves. How to reproduce: - Open Odoo on mobile (or on desktop but simulate mobile device with devtools); - Inventory > Operations > Transfers; - Create a new transfer (a receipt for example); - In its operations (moves), add a new product, then add a second product. - Try to save or validate the picking -> A warning prevent to do it, saying you're trying to write on the field `product_qty` instead of the field `product_uom_qty`. What's happening: For a unknown reason, the fields from the `stock.move` list view are saved once a second move is created, even if we're using the kanban view in the mobile version. To avoid this issue, we force the `force_save` to be false for the field `product_qty` in the kanban view. That's way, it prevents the issue. OPW-3577844 X-original-commit: 818e7fcfd88fa9fe2927e327f4510b108a47c370 Part-of: odoo/odoo#144282 --- addons/stock/views/stock_move_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/views/stock_move_views.xml b/addons/stock/views/stock_move_views.xml index d13c379f454..65e4c4ed542 100644 --- a/addons/stock/views/stock_move_views.xml +++ b/addons/stock/views/stock_move_views.xml @@ -101,7 +101,7 @@ - +