2010-08-05 12:55:01 +00:00
|
|
|
-
|
2014-03-27 21:32:01 +00:00
|
|
|
In order to test procurement_jit module with OpenERP, I create procurement order for
|
2012-07-30 13:19:26 +00:00
|
|
|
Computer Case product and check whether it runs without scheduler or not.
|
2010-08-05 12:55:01 +00:00
|
|
|
-
|
2012-07-30 13:19:26 +00:00
|
|
|
!record {model: procurement.order, id: procurement_order_test1}:
|
2010-08-05 12:55:01 +00:00
|
|
|
company_id: base.main_company
|
2011-01-05 13:14:28 +00:00
|
|
|
date_planned: !eval datetime.today().strftime("%Y-%m-%d %H:%M:%S")
|
2010-09-01 17:58:28 +00:00
|
|
|
name: PROC/TEST/0001
|
2012-07-30 12:47:15 +00:00
|
|
|
product_id: product.product_product_16
|
2010-08-05 12:55:01 +00:00
|
|
|
product_qty: 10.0
|
|
|
|
product_uom: product.product_uom_unit
|
|
|
|
product_uos_qty: 0.0
|
2011-01-05 13:14:28 +00:00
|
|
|
-
|
2013-07-10 15:38:55 +00:00
|
|
|
I check that the procurement is automatically in exception because nothing is configured to handle this procurement.
|
2010-08-05 12:55:01 +00:00
|
|
|
-
|
2012-07-30 13:19:26 +00:00
|
|
|
!assert {model: procurement.order, id: procurement_order_test1, string: procstate}:
|
2013-07-10 15:38:55 +00:00
|
|
|
- state == 'exception'
|