Skip to content
Snippets Groups Projects
Commit ee252143 authored by svs-odoo's avatar svs-odoo Committed by fw-bot
Browse files

[FIX] stock: lot not found for delivery on mobile

Before this commit, on mobile, when you make a delivery for a tracked
product you can't find already existing production lot for this product.
The issue was the `company_id` wasn't passed in the context and we use a
domain related on this field.

How to reproduce the issue:
    - Create a product tracked by lot number;
    - Add some quantities for this product by creating a production lot;
    - From a delivery order, try to specify the LN which are part of the
      picking, none are visible (records not found).

X-original-commit: dd49f405
parent 848195d1
Branches
Tags
No related merge requests found
......@@ -211,7 +211,7 @@
</div>
</group>
</group>
<field name="move_line_ids" attrs="{'readonly': ['|', ('state', '=', 'cancel'), '&amp;', ('state', '=', 'done'), ('is_locked', '=', True)]}" context="{'tree_view_ref': 'stock.view_stock_move_line_operation_tree', 'default_product_uom_id': product_uom, 'default_picking_id': picking_id, 'default_move_id': id, 'default_product_id': product_id, 'default_location_id': location_id, 'default_location_dest_id': location_dest_id}"/>
<field name="move_line_ids" attrs="{'readonly': ['|', ('state', '=', 'cancel'), '&amp;', ('state', '=', 'done'), ('is_locked', '=', True)]}" context="{'tree_view_ref': 'stock.view_stock_move_line_operation_tree', 'default_product_uom_id': product_uom, 'default_picking_id': picking_id, 'default_move_id': id, 'default_product_id': product_id, 'default_location_id': location_id, 'default_location_dest_id': location_dest_id, 'default_company_id': company_id}"/>
<footer class="oe_edit_only">
<button string="Confirm" special="save" class="oe_highlight"/>
<button string="Discard" special="cancel"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment