From 7a8bd9e11f72b053e4b85b67d89d677905f32bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 17 Apr 2008 23:55:48 +0200 Subject: [PATCH] Fix name of invoice Date in name is not a good idea as it is not formated with locales of user --- invoice.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/invoice.py b/invoice.py index e385496e80..28c1b67e86 100644 --- a/invoice.py +++ b/invoice.py @@ -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',