18 lines
733 B
YAML
18 lines
733 B
YAML
-
|
|
In order to test procurement_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")
|
|
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 check that the procurement is automatically in exception because nothing is configured to handle this procurement.
|
|
-
|
|
!assert {model: procurement.order, id: procurement_order_test1, string: procstate}:
|
|
- state == 'exception'
|