diff --git a/account_invoice_reference/account_move.py b/account_invoice_reference/account_move.py index 66877aed..b33a30e8 100644 --- a/account_invoice_reference/account_move.py +++ b/account_invoice_reference/account_move.py @@ -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)