Merge lp:~therp-nl/partner-contact-management/7.0-firstname_display_name_trigger_prepare_name into lp:~partner-contact-core-editors/partner-contact-management/7.0

Proposed by Holger Brunn (Therp)
Status: Merged
Merged at revision: 42
Proposed branch: lp:~therp-nl/partner-contact-management/7.0-firstname_display_name_trigger_prepare_name
Merge into: lp:~partner-contact-core-editors/partner-contact-management/7.0
Diff against target: 13 lines (+1/-2)
1 file modified
firstname_display_name_trigger/res_partner.py (+1/-2)
To merge this branch: bzr merge lp:~therp-nl/partner-contact-management/7.0-firstname_display_name_trigger_prepare_name
Reviewer Review Type Date Requested Status
Stefan Rijnhart (Opener) Approve
Pedro Manuel Baeza code review Approve
Leonardo Pistone Approve
Review via email: mp+227152@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Leonardo Pistone (lepistone) wrote :

Apparently a symlink is gone in that commit.

The diff also says "=== target was u'base_location'" which I don't understand.

If that is intentional, can you please split into another commit and elaborate in the commit message?

Thanks!

review: Needs Fixing
Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

That's not intentional. I currently can't see the problem, could you elaborate?

Revision history for this message
Leonardo Pistone (lepistone) wrote :

I think the the symlink was intentionally there for backwards compatibility when the module better_zip was renamed to base_location.

I now understand the second line of the diff - it has to be read as one sentence (removed symlink better_zip, target was base_location).

I suggest you start again with a fresh branch, re-apply your change leaving the symlink alone and push --overwrite.

Thanks!

42. By Holger Brunn (Therp)

[RFR] use _prepare_name from refactoring of partner_firstname

Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

now I got it, thanks! Now launchpad still talks about that link, but the merge itself is clean as far as I see.

Revision history for this message
Leonardo Pistone (lepistone) wrote :

+1

review: Approve
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

LGTM

review: Approve (code review)
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Tnx!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'firstname_display_name_trigger/res_partner.py'
2--- firstname_display_name_trigger/res_partner.py 2013-12-04 12:52:48 +0000
3+++ firstname_display_name_trigger/res_partner.py 2014-07-17 10:54:21 +0000
4@@ -37,8 +37,7 @@
5 ids = [ids]
6 res = []
7 for record in self.browse(cr, uid, ids, context=context):
8- names = (record.lastname, record.firstname)
9- name = u" ".join([s for s in names if s])
10+ name = self._prepare_name_custom(cr, uid, record, context=context)
11 if record.parent_id and not record.is_company:
12 name = "%s, %s" % (record.parent_id.name, name)
13 if context.get('show_address'):

Subscribers

People subscribed via source and target branches

to status/vote changes: