[VIEW] +customize associate members form 7.0
authorLudovic CHEVALIER <ludovic@beurresarrasin.net>
Wed, 29 Jan 2020 11:58:49 +0000 (12:58 +0100)
committerLudovic CHEVALIER <ludovic@beurresarrasin.net>
Wed, 29 Jan 2020 11:58:49 +0000 (12:58 +0100)
view/members.xml

index 0e95304..f3fca9f 100644 (file)
                 <xpath expr="//notebook[@name='Volunteer activities']" position="replace"/>
             </field>
         </record>
                 <xpath expr="//notebook[@name='Volunteer activities']" position="replace"/>
             </field>
         </record>
+        <record id="view_bikecoop_l10n_fr_associate_member_form" model="ir.ui.view">
+            <field name="name">res.partner.form</field>
+            <field name="model">res.partner</field>
+            <field name="inherit_id" ref="bikecoop_l10n_fr.view_bikecoop_l10n_fr_associate_member_form"/>
+            <field name="arch" type="xml">
+                <xpath expr="//field[@name='zip']" position="attributes">
+                    <attribute name="required">1</attribute>
+                </xpath>
+                <xpath expr="//field[@name='street']" position="attributes">
+                    <attribute name="required">1</attribute>
+                </xpath>
+                <xpath expr="//field[@name='street2']" position="replace"/>
+                <xpath expr="//field[@name='country_id']" position="attributes">
+                    <attribute name="invisible">1</attribute>
+                </xpath>
+                <xpath expr="//field[@name='email']" position="attributes">
+                    <attribute name="required">1</attribute>
+                </xpath>
+                <xpath expr="//field[@name='nationality_id']" position="replace"/>
+                <xpath expr="//field[@name='gender_id']" position="after">
+                    <field name="comment"/>
+                </xpath>
+                <xpath expr="//field[@name='occupation_id']" position="replace"/>
+                <xpath expr="//notebook[@name='Volunteer activities']" position="replace"/>
+            </field>
+        </record>
     </data>
 </openerp>
     </data>
 </openerp>