From eb6ba5ba47f228adc746cedfa3cd92c154fce60b Mon Sep 17 00:00:00 2001 From: "Pinakin Nayi (OpenERP)" Date: Fri, 15 Feb 2013 15:28:01 +0530 Subject: [PATCH] [IMP]account:field supplier invoice number should be set in journal entry as description bzr revid: pna@tinyerp.com-20130215095801-wstbzqniydainl4s --- addons/account/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,