openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #00245
[Merge] lp:~therp-nl/partner-contact-management/no_split_for_companies into lp:partner-contact-management
Holger Brunn (Therp) has proposed merging lp:~therp-nl/partner-contact-management/no_split_for_companies 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/no_split_for_companies/+merge/188556
--
https://code.launchpad.net/~therp-nl/partner-contact-management/no_split_for_companies/+merge/188556
Your team Partner and Contact Core Editors is requested to review the proposed merge of lp:~therp-nl/partner-contact-management/no_split_for_companies into lp:partner-contact-management.
=== modified file 'partner_firstname/partner_view.xml'
--- partner_firstname/partner_view.xml 2013-04-30 08:10:08 +0000
+++ partner_firstname/partner_view.xml 2013-10-01 11:18:11 +0000
@@ -5,8 +5,11 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_simple_form"/>
<field name="arch" type="xml">
+ <field name="name" position="attributes">
+ <attribute name="attrs">{'readonly': [('is_company', '=', False)]}</attribute>
+ </field>
<field name="category_id" position="before">
- <group>
+ <group attrs="{'invisible': [('is_company', '=', True)]}">
<field name="lastname"/>
<field name="firstname"/>
</group>
@@ -19,8 +22,11 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
+ <field name="name" position="attributes">
+ <attribute name="attrs">{'readonly': [('is_company', '=', False)]}</attribute>
+ </field>
<field name="category_id" position="before">
- <group>
+ <group attrs="{'invisible': [('is_company', '=', True)]}">
<field name="lastname"/>
<field name="firstname"/>
</group>
Follow ups