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

bzr revid: pna@tinyerp.com-20130215095801-wstbzqniydainl4s
This commit is contained in:
Pinakin Nayi (OpenERP) 2013-02-15 15:28:01 +05:30
parent 5cdb8efab6
commit eb6ba5ba47
1 changed files with 1 additions and 1 deletions

View File

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