diff --git a/invoice.py b/invoice.py index 9df34da870..6a6e9d6c81 100644 --- a/invoice.py +++ b/invoice.py @@ -731,7 +731,8 @@ class Invoice(OSV): ids = [ids] res = [] for invoice in self.browse(cursor, user, ids, context=context): - res.append((invoice.id, invoice.number or '/' + ' ' + invoice.partner.name)) + res.append((invoice.id, + invoice.number or str(invoice.id) + ' ' + invoice.partner.name)) return res def name_search(self, cursor, user, name='', args=None, operator='ilike',