openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #07711
[Merge] lp:~therp-nl/partner-contact-management/7.0-firstname_display_name_trigger_prepare_name into lp:partner-contact-management
Holger Brunn (Therp) has proposed merging lp:~therp-nl/partner-contact-management/7.0-firstname_display_name_trigger_prepare_name into lp:partner-contact-management.
Requested reviews:
Partner and Contact Core Editors (partner-contact-core-editors)
For more details, see:
https://code.launchpad.net/~therp-nl/partner-contact-management/7.0-firstname_display_name_trigger_prepare_name/+merge/227152
--
https://code.launchpad.net/~therp-nl/partner-contact-management/7.0-firstname_display_name_trigger_prepare_name/+merge/227152
Your team Partner and Contact Core Editors is requested to review the proposed merge of lp:~therp-nl/partner-contact-management/7.0-firstname_display_name_trigger_prepare_name into lp:partner-contact-management.
=== removed symlink 'better_zip'
=== target was u'base_location'
=== modified file 'firstname_display_name_trigger/res_partner.py'
--- firstname_display_name_trigger/res_partner.py 2013-12-04 12:52:48 +0000
+++ firstname_display_name_trigger/res_partner.py 2014-07-17 08:30:57 +0000
@@ -37,8 +37,7 @@
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'):
Follow ups