mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
If there is two move lines for the same product in the vertical lift (stored in2 differents trays for instance), the pick scenario was failing when the user was processing the first line. To circumvent this, instead of validating directly the move, we put the line in its own stock move, then we put the stock move in its own transfer and validate this one. Methods used to do that have been copied from the `shopfloor` module, they probably deserves their own module as they are quite generic.
51 lines
2.2 KiB
XML
51 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo noupdate="1">
|
|
<record id="stock_inventory_vertical_lift_0" model="stock.inventory">
|
|
<field name="name">Starting Vertical Lift Inventory</field>
|
|
</record>
|
|
<record id="stock_inventory_vertical_lift_line_1" model="stock.inventory.line">
|
|
<field name="product_id" ref="product_running_socks" />
|
|
<field name="product_uom_id" ref="uom.product_uom_unit" />
|
|
<field name="inventory_id" ref="stock_inventory_vertical_lift_0" />
|
|
<field name="product_qty">10.0</field>
|
|
<field
|
|
name="location_id"
|
|
ref="stock_location_vertical_lift_demo_tray_1b_x1y2"
|
|
/>
|
|
</record>
|
|
<record id="stock_inventory_vertical_lift_line_2" model="stock.inventory.line">
|
|
<field name="product_id" ref="product_running_socks" />
|
|
<field name="product_uom_id" ref="uom.product_uom_unit" />
|
|
<field name="inventory_id" ref="stock_inventory_vertical_lift_0" />
|
|
<field name="product_qty">10.0</field>
|
|
<field
|
|
name="location_id"
|
|
ref="stock_location_vertical_lift_demo_tray_1b_x2y2"
|
|
/>
|
|
</record>
|
|
<record id="stock_inventory_vertical_lift_line_3" model="stock.inventory.line">
|
|
<field name="product_id" ref="product_running_socks" />
|
|
<field name="product_uom_id" ref="uom.product_uom_unit" />
|
|
<field name="inventory_id" ref="stock_inventory_vertical_lift_0" />
|
|
<field name="product_qty">10.0</field>
|
|
<field
|
|
name="location_id"
|
|
ref="stock_location_vertical_lift_demo_tray_1b_x3y2"
|
|
/>
|
|
</record>
|
|
<function model="stock.inventory" name="_action_start">
|
|
<function
|
|
eval="[[('state','=','draft'),('id', '=', ref('stock_vertical_lift.stock_inventory_vertical_lift_0'))]]"
|
|
model="stock.inventory"
|
|
name="search"
|
|
/>
|
|
</function>
|
|
<function model="stock.inventory" name="action_validate">
|
|
<function
|
|
eval="[[('state','=','confirm'),('id', '=', ref('stock_vertical_lift.stock_inventory_vertical_lift_0'))]]"
|
|
model="stock.inventory"
|
|
name="search"
|
|
/>
|
|
</function>
|
|
</odoo>
|