From 7ee65aa181ef895d4b2d496451a0720c609adf55 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 31 Mar 2014 12:44:48 +0200 Subject: [PATCH] [FIX] sale: remove useless write call (problematic when invoice on delivery order) bzr revid: mat@openerp.com-20140331104448-4omzqnist6wlmakd --- addons/sale/wizard/sale_line_invoice.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/sale/wizard/sale_line_invoice.py b/addons/sale/wizard/sale_line_invoice.py index d8a7d05a10e..5f979ead31e 100644 --- a/addons/sale/wizard/sale_line_invoice.py +++ b/addons/sale/wizard/sale_line_invoice.py @@ -101,7 +101,6 @@ class sale_order_line_make_invoice(osv.osv_memory): break if flag: wf_service.trg_validate(uid, 'sale.order', order.id, 'manual_invoice', cr) - sales_order_obj.write(cr, uid, [order.id], {'state': 'progress'}) if not invoices: raise osv.except_osv(_('Warning!'), _('Invoice cannot be created for this Sales Order Line due to one of the following reasons:\n1.The state of this sales order line is either "draft" or "cancel"!\n2.The Sales Order Line is Invoiced!'))