[MERGE] [FIX] account: field supplier invoice number should be set in journal entry as description

lp bug: https://launchpad.net/bugs/1090389 fixed

bzr revid: mat@openerp.com-20130611123027-6rro4bg1es3se2un
This commit is contained in:
Martin Trigaux 2013-06-11 14:30:27 +02:00
commit a2a19e58ea
1 changed files with 1 additions and 1 deletions

View File

@ -951,7 +951,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,