Merge lp:~camptocamp/partner-contact-management/partner_firstname_vre_view_resubmit into lp:~partner-contact-core-editors/partner-contact-management/7.0

Proposed by Vincent Renaville@camptocamp
Status: Merged
Approved by: Yannick Vaucher @ Camptocamp
Approved revision: 28
Merged at revision: 28
Proposed branch: lp:~camptocamp/partner-contact-management/partner_firstname_vre_view_resubmit
Merge into: lp:~partner-contact-core-editors/partner-contact-management/7.0
Diff against target: 24 lines (+11/-3)
1 file modified
partner_firstname/partner_view.xml (+11/-3)
To merge this branch: bzr merge lp:~camptocamp/partner-contact-management/partner_firstname_vre_view_resubmit
Reviewer Review Type Date Requested Status
El Hadji Dem (http://www.savoirfairelinux.com) (community) Disapprove
Yannick Vaucher @ Camptocamp code review, no tests Approve
Holger Brunn (Therp) code review Approve
Review via email: mp+195092@code.launchpad.net

This proposal supersedes a proposal from 2013-10-29.

Description of the change

Hello,

I do a resubmit, I think it's more clear now.

Vincent

To post a comment you must log in.
Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote : Posted in a previous version of this proposal

Please don't mix tab and spaces and use spaces only

Why are label needed? Is it for some styling?
Isn't it possible to show the label by wrapping the fields in a <group> tag?

review: Needs Fixing (code)
Revision history for this message
Vincent Renaville@camptocamp (vrenaville-c2c) wrote :

Yannick tanks for the review,

I have done a resubmit to fit rev 26 .

I have add Is company on the contact for multiple level company,
and I remove the unuseful div on firstname lastname group

Vincent

Revision history for this message
Holger Brunn (Therp) (hbrunn) :
review: Approve (code review)
Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) :
review: Approve (code review, no tests)
Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

Thanks for the changes

Revision history for this message
El Hadji Dem (http://www.savoirfairelinux.com) (eh-dem) wrote :

Hello Vincent,

In partner view, we create a company; from the company, we create a contact and again you add is_company field; it is redundant and the view doesn't display well

review: Disapprove

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'partner_firstname/partner_view.xml'
2--- partner_firstname/partner_view.xml 2013-10-01 11:32:16 +0000
3+++ partner_firstname/partner_view.xml 2013-11-13 16:20:40 +0000
4@@ -32,10 +32,18 @@
5 </group>
6 </field>
7 <!-- Add firstname and last name in inner contact form of child_ids -->
8- <xpath expr="//form[@string='Contact']/sheet/div/h1/field[@name='name']" position="after">
9- <field name="lastname"/>
10+ <xpath expr="//form[@string='Contact']/sheet/div" position="after">
11+ <group attrs="{'invisible': [('is_company', '=', True)]}">
12+ <field name="lastname" attrs="{'required': [('is_company', '=', False)]}"/>
13 <field name="firstname"/>
14- </xpath>
15+ </group>
16+ </xpath>
17+ <xpath expr="//form[@string='Contact']/sheet/div/h1" position="after">
18+ <field name="is_company" on_change="onchange_type(is_company)" class="oe_inline"/>
19+ <label for="is_company" string="Is a Company?"/>)
20+ </xpath>
21+
22+
23 </field>
24 </record>
25

Subscribers

People subscribed via source and target branches

to status/vote changes: