Fix name of invoice

Date in name is not a good idea as it is not formated with locales of user
This commit is contained in:
Cédric Krier committed 2008-04-17 23:55:48 +02:00
1 parent 9e01c1a62c
commit 7a8bd9e11f
1 file changed
+1 -2
+1 -2
View File
@@ -715,8 +715,7 @@ class Invoice(OSV):
ids = [ids]
res = []
for invoice in self.browse(cursor, user, ids, context=context):
res.append((invoice.id, invoice.number or invoice.invoice_date + \
invoice.partner.name))
res.append((invoice.id, invoice.number or '/' + ' ' + invoice.partner.name))
return res
def name_search(self, cursor, user, name='', args=None, operator='ilike',