[FIX] sale: writing False on a m2m is a no-op, and rather confusing here

bzr revid: odo@openerp.com-20121129153330-ld55e5qksflqy3bx
This commit is contained in:
Olivier Dony 2012-11-29 16:33:30 +01:00
parent cd9e7a3265
commit 0ad3703b18
1 changed files with 1 additions and 1 deletions

View File

@ -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):