From 77420fc8cf879f9b9cd4893c5226476175c927d5 Mon Sep 17 00:00:00 2001 From: mtr Date: Fri, 23 Jul 2010 18:36:01 +0530 Subject: [PATCH] [IMP] sale:-improved the so_make_line_invoice.yml file,verified it gives warning on the Create Invoice button click bzr revid: mtr@mtr-20100723130601-i46qburstr5c2cbc --- addons/sale/test/so_make_line_invoice.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/addons/sale/test/so_make_line_invoice.yml b/addons/sale/test/so_make_line_invoice.yml index df919bd234d..e373a2af18d 100644 --- a/addons/sale/test/so_make_line_invoice.yml +++ b/addons/sale/test/so_make_line_invoice.yml @@ -130,7 +130,18 @@ !python {model: sale.order}: | sale_id=self.browse(cr, uid, ref("sale_order_so3")) assert(sale_id.invoiced == True), "Paid has not been set to true" -- +- + I click on the "Create Invoice" button of sale order and verify that it gives a warning message +- + !python {model: sale.order}: | + sale_order_obj = self.pool.get('sale.order') + import netsvc + wf_service = netsvc.LocalService("workflow") + try: + wf_service.trg_validate(uid, 'sale.order',ref("sale_order_so3"),'manual_invoice', cr) + except: + pass +- I create an invoice for another sale order line. - I click on the "Create Invoice" button of sale order line