return too early

This commit is contained in:
Guewen Baconnier
2014-01-29 15:12:43 +01:00
parent 52a96d5452
commit 78079b2fdc

View File

@@ -92,8 +92,9 @@ class account_invoice(orm.Model):
if not invoice.reference:
locvals = vals.copy()
locvals['reference'] = vals['supplier_invoice_reference']
return super(account_invoice, self).write(cr, uid, [invoice.id],
locvals, context=context)
super(account_invoice, self).write(cr, uid, [invoice.id],
locvals, context=context)
return True
else:
return super(account_invoice, self).write(cr, uid, ids, vals,
context=context)