[VIEW] +customize associate members form
[burette/cyclofficine_ivry.git] / view / members.xml
1 <openerp>
2 <data>
3 <record id="view_bikecooop_members_form" model="ir.ui.view">
4 <field name="name">res.partner.form</field>
5 <field name="model">res.partner</field>
6 <field name="inherit_id" ref="bikecoop.view_bikecoop_members_form"/>
7 <field name="arch" type="xml">
8 <xpath expr="//field[@name='zip']" position="attributes">
9 <attribute name="required">1</attribute>
10 </xpath>
11 <xpath expr="//field[@name='street']" position="attributes">
12 <attribute name="required">1</attribute>
13 </xpath>
14 <xpath expr="//field[@name='street2']" position="replace"/>
15 <xpath expr="//field[@name='country_id']" position="attributes">
16 <attribute name="invisible">1</attribute>
17 </xpath>
18 <xpath expr="//field[@name='email']" position="attributes">
19 <attribute name="required">1</attribute>
20 </xpath>
21 <xpath expr="//field[@name='nationality_id']" position="replace"/>
22 <xpath expr="//field[@name='gender_id']" position="after">
23 <field name="comment"/>
24 </xpath>
25 <xpath expr="//field[@name='occupation_id']" position="replace"/>
26 <xpath expr="//notebook[@name='Volunteer activities']" position="replace"/>
27 </field>
28 </record>
29 <record id="view_bikecoop_l10n_fr_associate_member_form" model="ir.ui.view">
30 <field name="name">res.partner.form</field>
31 <field name="model">res.partner</field>
32 <field name="inherit_id" ref="bikecoop_l10n_fr.view_bikecoop_l10n_fr_associate_member_form"/>
33 <field name="arch" type="xml">
34 <xpath expr="//field[@name='zip']" position="attributes">
35 <attribute name="required">1</attribute>
36 </xpath>
37 <xpath expr="//field[@name='street']" position="attributes">
38 <attribute name="required">1</attribute>
39 </xpath>
40 <xpath expr="//field[@name='street2']" position="replace"/>
41 <xpath expr="//field[@name='country_id']" position="attributes">
42 <attribute name="invisible">1</attribute>
43 </xpath>
44 <xpath expr="//field[@name='email']" position="attributes">
45 <attribute name="required">1</attribute>
46 </xpath>
47 <xpath expr="//field[@name='nationality_id']" position="replace"/>
48 <xpath expr="//field[@name='gender_id']" position="after">
49 <field name="comment"/>
50 </xpath>
51 <xpath expr="//field[@name='occupation_id']" position="replace"/>
52 <xpath expr="//notebook[@name='Volunteer activities']" position="replace"/>
53 </field>
54 </record>
55 </data>
56 </openerp>