odoo/addons/mrp_jit/test/mrp_jit.yml

25 lines
862 B
YAML

-
In order to test mrp_jit module with OpenERP, I create procurement order for
Computer Case product and check whether it runs without scheduler or not.
-
!record {model: procurement.order, id: procurement_order_test1}:
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_16
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: procurement_order_test1}
-
|
I check that the procurement is scheduled automatically.
-
!assert {model: procurement.order, id: procurement_order_test1, string: procstate}:
- state<>'confirmed'