mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
return too early
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user