-
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
name: External Hard Disk + Subproduct
product_uom: product.product_uom_unit
-
!record {model: mrp.production, id: mrp_production_mo0}:
product_id: product.product_product_28
- product_qty: 10.0
+ product_qty: 2.0
product_uom: product.product_uom_unit
- bom_id: mrp_bom_arm1
+ bom_id: mrp.mrp_bom_24
location_src_id: stock.stock_location_stock
-
I compute the data of production order.
-
I confirm the production order.
-
- !python {model: mrp.production}: |
- self.action_confirm(cr, uid, [ref('mrp_production_mo0')])
+ !workflow {model: mrp.production, action: button_confirm, ref: mrp_production_mo0}
-
I check production order state.
-
I create record for selecting mode and quantity of products to produce.
-
!record {model: mrp.product.produce, id: mrp_product_produce0}:
- product_qty: 10.00
+ product_qty: 2.00
mode: 'consume_produce'
-
I finish the production order.