odoo/addons/mrp_jit/test/mrp_jit.yml

25 lines
845 B
YAML

-
In order to test mrp_jit module with OpenERP, I will create manufacturing order
and check whether the procurement orders run without scheduler or not.
-
!record {model: procurement.order, id: mrp_production_mo0}:
company_id: base.main_company
date_planned: !eval datetime.today().strftime("%Y-%m-%d %H:%M:%S")
location_id: stock.stock_location_stock
name: PROC/TEST/0001
product_id: product.product_product_4
product_qty: 10.0
product_uom: product.product_uom_unit
product_uos_qty: 0.0
-
|
I confirm the procurement order PROC/TEST/0001.
-
!workflow {model: procurement.order, action: button_confirm, ref: mrp_production_mo0}
-
|
I check that the procurement is scheduled automatically.
-
!assert {model: procurement.order, id: mrp_production_mo0, string: procstate}:
- state<>'confirmed'