[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
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
<field name="product_id"/>
|
||||
<field name="show_details_visible"/>
|
||||
<field name="product_uom_qty"/>
|
||||
<field name="product_qty"/>
|
||||
<field name="product_qty" readonly="1" force_save="0"/>
|
||||
<field name="quantity"/>
|
||||
<field name="is_inventory"/>
|
||||
<field name="state"/>
|
||||
|
||||
Reference in New Issue
Block a user