diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index f255b6788ee..4f49ecec87a 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -926,7 +926,7 @@ class account_invoice(osv.osv): total, total_currency, iml = self.compute_invoice_totals(cr, uid, inv, company_currency, ref, iml, context=ctx) acc_id = inv.account_id.id - name = inv['name'] or '/' + name = inv['name'] or inv['supplier_invoice_number'] or '/' totlines = False if inv.payment_term: totlines = payment_term_obj.compute(cr,