From 0ad3703b18f5e7be7e043780ea661182b7a534ab Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Thu, 29 Nov 2012 16:33:30 +0100 Subject: [PATCH] [FIX] sale: writing False on a m2m is a no-op, and rather confusing here bzr revid: odo@openerp.com-20121129153330-ld55e5qksflqy3bx --- addons/sale/sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/sale.py b/addons/sale/sale.py index 18947d5d7b4..b1f9bf8630d 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -546,7 +546,7 @@ class sale_order(osv.osv): # Update the line (only when needed) if line.invoiced != invoiced: self.pool.get('sale.order.line').write(cr, uid, [line.id], {'invoiced': invoiced}, context=context) - self.write(cr, uid, ids, {'state': 'invoice_except', 'invoice_ids': False}, context=context) + self.write(cr, uid, ids, {'state': 'invoice_except'}, context=context) return True def action_invoice_end(self, cr, uid, ids, context=None):