From 69fa5dbec2c671733e30c70ea260725238328c71 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Mon, 19 Aug 2013 19:03:19 +0200 Subject: [PATCH] [ADD] Add test for procurement exceptions bzr revid: jco@openerp.com-20130819170319-rd0zqen2pqot1e3p --- .../test/procurementexception.yml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 addons/stock_complex_routes/test/procurementexception.yml diff --git a/addons/stock_complex_routes/test/procurementexception.yml b/addons/stock_complex_routes/test/procurementexception.yml new file mode 100644 index 00000000000..67afc101089 --- /dev/null +++ b/addons/stock_complex_routes/test/procurementexception.yml @@ -0,0 +1,37 @@ +- + Create product with no seller_ids +- + +- + Create a sales order with 1 piece for that product and route crossdock +- + !record{sale.order} +- + Confirm sales order +- + !python { +- + Check there is a procurement in exception that has the procurement group of the sales order +- + !python { + assert +- + Adjust the product that it has at least one seller_id +- + !record{id: model: product.product) or in !python +- + Run the Scheduler +- + !python +- + Check the status changed there is no procurement order in exception any more from that procurement group +- + !python{model: procurement.order} + search procurement from +- + Check a purchase quotation was created +- + + + +