From d958ce968ee0bb4126e4a31d3e605d5a84d0e7b3 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Thu, 24 Apr 2014 11:53:47 +0200 Subject: [PATCH] [IMP] Make sure tests of stock_dropshipping also pass without procurement_jit bzr revid: jco@openerp.com-20140424095347-xcqj0m4oxilroxhk --- addons/stock_dropshipping/test/cancellation_propagated.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addons/stock_dropshipping/test/cancellation_propagated.yml b/addons/stock_dropshipping/test/cancellation_propagated.yml index cb68b582a6a..71f5e75385d 100644 --- a/addons/stock_dropshipping/test/cancellation_propagated.yml +++ b/addons/stock_dropshipping/test/cancellation_propagated.yml @@ -40,6 +40,11 @@ Confirm the sale order - !workflow {model: sale.order, action: order_confirm, ref: sale_order_product_mto} +- + I run scheduler. +- + !python {model: procurement.order}: | + self.run_scheduler(cr, uid) - Check the propagation when we cancel the main procurement * Retrieve related procurements and check that there are all running @@ -64,7 +69,7 @@ # Cancel the main procurement main_procu_id = self.search(cr, uid, [('origin', '=', so.name)]) assert len(main_procu_id) == 1, 'Main procurement not identified !' - self.cancel(cr, uid, main_procu_id, context=context) + self.cancel(cr, uid, main_procu_id, context=context) assert self.browse(cr, uid, main_procu_id[0]).state == u'cancel', 'Main procurement should be cancelled !' # Check that all procurements related are cancelled