|
@ -32,7 +32,9 @@ class ResPartner(Model): |
|
|
|
|
|
|
|
|
def _compute_name_custom(self, cursor, uid, ids, fname, arg, context=None): |
|
|
def _compute_name_custom(self, cursor, uid, ids, fname, arg, context=None): |
|
|
res = {} |
|
|
res = {} |
|
|
for rec in self.read(cursor, uid, ids, ['firstname', 'lastname']): |
|
|
|
|
|
|
|
|
partners = self.read(cursor, uid, ids, |
|
|
|
|
|
['firstname', 'lastname'], context=context) |
|
|
|
|
|
for rec in partners: |
|
|
names = (rec['lastname'], rec['firstname']) |
|
|
names = (rec['lastname'], rec['firstname']) |
|
|
fullname = " ".join([s for s in names if s]) |
|
|
fullname = " ".join([s for s in names if s]) |
|
|
res[rec['id']] = fullname |
|
|
res[rec['id']] = fullname |
|
|