[IMP] improved the yml of mrp_subproduct

bzr revid: bde@tinyerp.com-20120724130251-vuyee33s7yy26pll
This commit is contained in:
Bharat Devnani (OpenERP) 2012-07-24 18:32:51 +05:30
parent 0354b79204
commit df884c3326
1 changed files with 5 additions and 6 deletions

View File

@ -4,7 +4,7 @@
- -
I add a sub product in Bill of material for product External Hard Disk. I add a sub product in Bill of material for product External Hard Disk.
- -
!record {model: mrp.bom, id: mrp_bom_arm1}: !record {model: mrp.bom, id: mrp.mrp_bom_24}:
product_id: product.product_product_28 product_id: product.product_product_28
name: External Hard Disk + Subproduct name: External Hard Disk + Subproduct
product_uom: product.product_uom_unit product_uom: product.product_uom_unit
@ -18,9 +18,9 @@
- -
!record {model: mrp.production, id: mrp_production_mo0}: !record {model: mrp.production, id: mrp_production_mo0}:
product_id: product.product_product_28 product_id: product.product_product_28
product_qty: 10.0 product_qty: 2.0
product_uom: product.product_uom_unit product_uom: product.product_uom_unit
bom_id: mrp_bom_arm1 bom_id: mrp.mrp_bom_24
location_src_id: stock.stock_location_stock location_src_id: stock.stock_location_stock
- -
I compute the data of production order. I compute the data of production order.
@ -30,8 +30,7 @@
- -
I confirm the production order. I confirm the production order.
- -
!python {model: mrp.production}: | !workflow {model: mrp.production, action: button_confirm, ref: mrp_production_mo0}
self.action_confirm(cr, uid, [ref('mrp_production_mo0')])
- -
I check production order state. I check production order state.
- -
@ -59,7 +58,7 @@
I create record for selecting mode and quantity of products to produce. I create record for selecting mode and quantity of products to produce.
- -
!record {model: mrp.product.produce, id: mrp_product_produce0}: !record {model: mrp.product.produce, id: mrp_product_produce0}:
product_qty: 10.00 product_qty: 2.00
mode: 'consume_produce' mode: 'consume_produce'
- -
I finish the production order. I finish the production order.