From ab4db07ebb868296b406ed380d3ba7134578bca3 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 19 Aug 2014 13:05:07 +0200 Subject: [PATCH] [IMP] use refactoring in partner_firstname --- firstname_display_name_trigger/res_partner.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/firstname_display_name_trigger/res_partner.py b/firstname_display_name_trigger/res_partner.py index ea9a48239..668bbb889 100644 --- a/firstname_display_name_trigger/res_partner.py +++ b/firstname_display_name_trigger/res_partner.py @@ -37,8 +37,7 @@ class ResPartner(orm.Model): ids = [ids] res = [] for record in self.browse(cr, uid, ids, context=context): - names = (record.lastname, record.firstname) - name = u" ".join([s for s in names if s]) + name = self._prepare_name_custom(cr, uid, record, context=context) if record.parent_id and not record.is_company: name = "%s, %s" % (record.parent_id.name, name) if context.get('show_address'):