summaryrefslogtreecommitdiff
path: root/addons/stock_picking_batch/data
diff options
context:
space:
mode:
authoramoyaux <arm@odoo.com>2017-09-21 10:22:10 +0200
committeramoyaux <arm@odoo.com>2017-09-26 09:31:26 +0200
commit628c11f4670ec49a2799fd22cc993eaa40b66348 (patch)
tree48913e9653f304bced7b582d20bee3e843f7f5f0 /addons/stock_picking_batch/data
parent589a38ce338d4e56f0b5a8d026183316f7896592 (diff)
[REF] stock_picking_batch: improve demo data
With the old demo data there were 3 picking without initial demand. This commit modifies the picking to reflect 3 differents cases. -One picking without quantity done -A picking that need a back order -A picking without qty done and initial demand that should raise an error
Diffstat (limited to 'addons/stock_picking_batch/data')
-rw-r--r--addons/stock_picking_batch/data/stock_picking_batch_demo.xml27
1 files changed, 25 insertions, 2 deletions
diff --git a/addons/stock_picking_batch/data/stock_picking_batch_demo.xml b/addons/stock_picking_batch/data/stock_picking_batch_demo.xml
index 5db9ea27c5a..0c3434bb285 100644
--- a/addons/stock_picking_batch/data/stock_picking_batch_demo.xml
+++ b/addons/stock_picking_batch/data/stock_picking_batch_demo.xml
@@ -25,7 +25,7 @@
<field name="state">assigned</field>
<field name="priority">1</field>
<field name="picking_type_id" ref="stock.picking_type_internal"/>
- <field name="batch_id" ref="stock_picking_batch_dry_1"/>
+ <field name="batch_id" ref="stock_picking_batch_freeze_1"/>
<field name="location_id" ref="stock.stock_location_stock"/>
<field name="location_dest_id" ref="stock.stock_location_output"/>
</record>
@@ -35,7 +35,7 @@
<field name="state">assigned</field>
<field name="priority">1</field>
<field name="picking_type_id" ref="stock.picking_type_internal"/>
- <field name="batch_id" ref="stock_picking_batch_freeze_1"/>
+ <field name="batch_id" ref="stock_picking_batch_dry_1"/>
<field name="location_id" ref="stock.stock_location_stock"/>
<field name="location_dest_id" ref="stock.stock_location_output"/>
</record>
@@ -81,6 +81,7 @@
<field name="picking_id" ref="Picking_A"/>
<field name="location_id" ref="stock.stock_location_stock"/>
<field name="location_dest_id" ref="stock.stock_location_output"/>
+ <field name="product_uom_qty">10</field>
<field name="product_uom" ref="product.product_uom_unit" />
<field name="product_id" ref="product_product_ice_cream_choco"/>
</record>
@@ -89,6 +90,7 @@
<field name="picking_id" ref="Picking_A"/>
<field name="location_id" ref="stock.stock_location_stock"/>
<field name="location_dest_id" ref="stock.stock_location_output"/>
+ <field name="product_uom_qty">5</field>
<field name="product_uom" ref="product.product_uom_unit" />
<field name="product_id" ref="product_product_ice_cream_vani"/>
</record>
@@ -97,6 +99,7 @@
<field name="picking_id" ref="Picking_B"/>
<field name="location_id" ref="stock.stock_location_stock"/>
<field name="location_dest_id" ref="stock.stock_location_output"/>
+ <field name="product_uom_qty">10</field>
<field name="product_uom" ref="product.product_uom_unit" />
<field name="product_id" ref="product_product_dry_specu"/>
</record>
@@ -109,4 +112,24 @@
<field name="product_id" ref="product_product_ice_cream_vani"/>
</record>
+ <!-- Add stock move line -->
+ <record id="stock_move_line_1" model="stock.move.line">
+ <field name="picking_id" ref="Picking_A"/>
+ <field name="move_id" ref="stock_move1"/>
+ <field name="location_id" ref="stock.stock_location_stock"/>
+ <field name="location_dest_id" ref="stock.stock_location_output"/>
+ <field name="product_uom_qty">5</field>
+ <field name="product_uom_id" ref="product.product_uom_unit" />
+ <field name="product_id" ref="product_product_ice_cream_choco"/>
+ </record>
+ <record id="stock_move_line_1" model="stock.move.line">
+ <field name="picking_id" ref="Picking_A"/>
+ <field name="move_id" ref="stock_move2"/>
+ <field name="location_id" ref="stock.stock_location_stock"/>
+ <field name="location_dest_id" ref="stock.stock_location_output"/>
+ <field name="product_uom_qty">5</field>
+ <field name="product_uom_id" ref="product.product_uom_unit" />
+ <field name="product_id" ref="product_product_ice_cream_choco"/>
+ </record>
+
</odoo>