Browse Source

[FIX] search

pull/2/head
Vincent Renaville 12 years ago
parent
commit
0079040a01
  1. 2
      partner_firstname/partner.py

2
partner_firstname/partner.py

@ -33,7 +33,7 @@ class ResPartner(Model):
def _compute_name_custom(self, cursor, uid, ids, fname, arg, context=None):
res = {}
for rec in self.read(cursor, uid, ids, ['firstname', 'lastname']):
name = rec['lastname'] if rec['lastname'] else u"" + (u" " + rec['firstname'] if rec['firstname'] else u"")
name = '%s %s'%(rec['lastname'] if rec['lastname'] else u"",rec['firstname'] if rec['firstname'] else u"")
res[rec['id']] = name
return res

Loading…
Cancel
Save