[ADD]crm_channel: portal, Im not interested button go to next lead or to list if...
[odoo/odoo.git] / addons / mrp_jit / test / mrp_jit.yml
1 -
2   In order to test mrp_jit module with OpenERP, I create procurement order for 
3   Computer Case product and check whether it runs without scheduler or not.
4 -
5   !record {model: procurement.order, id: procurement_order_test1}:
6     company_id: base.main_company
7     date_planned: !eval datetime.today().strftime("%Y-%m-%d %H:%M:%S")
8     location_id: stock.stock_location_stock
9     name: PROC/TEST/0001
10     product_id: product.product_product_16
11     product_qty: 10.0
12     product_uom: product.product_uom_unit
13     product_uos_qty: 0.0
14 -
15   |
16   I confirm the procurement order PROC/TEST/0001.
17 -
18   !workflow {model: procurement.order, action: button_confirm, ref: procurement_order_test1}
19 -
20   |
21   I check that the procurement is scheduled automatically.
22 -
23   !assert {model: procurement.order, id: procurement_order_test1, string: procstate}:
24     - state<>'confirmed'