From 78079b2fdc3bf7c174fbb81e71b4445b05c3f5a5 Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Wed, 29 Jan 2014 15:12:43 +0100 Subject: [PATCH] return too early --- account_invoice_reference/account_move.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)