bzr revid: fp@tinyerp.com-20090126175757-sysvcpuyo51lt2tw
This commit is contained in:
Fabien Pinckaers 2009-01-26 18:57:57 +01:00
parent fc63af9856
commit 771c240a42
1 changed files with 2 additions and 1 deletions

View File

@ -867,7 +867,8 @@ class account_invoice(osv.osv):
'ref':invoice.number,
}
name = invoice.invoice_line and invoice.invoice_line[0].name or invoice.number
if not name:
name = invoice.invoice_line and invoice.invoice_line[0].name or invoice.number
l1['name'] = name
l2['name'] = name