5ebb26333b08a9115dee38edaad37b83794e88c2
[burette/ptitvelo.git] / view / ptitvelo.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <openerp>
3 <data>
4 <record id="view_bikecoop_members_form" model="ir.ui.view">
5 <field name="name">res.partner.form</field>
6 <field name="model">res.partner</field>
7 <field name="inherit_id" ref="bikecoop.view_bikecoop_members_form"/>
8 <field name="arch" type="xml">
9 <xpath expr="//field[@name='email']" position="attributes">
10 <attribute name="required">1</attribute>
11 </xpath>
12 <field name="nationality_id" position="replace"/>
13 <field name="zip" position="attributes">
14 <attribute name="required">1</attribute>
15 </field>
16 <field name="city" position="attributes">
17 <attribute name="required">1</attribute>
18 </field>
19 <field name="country_id" position="attributes">
20 <attribute name="required">1</attribute>
21 </field>
22 <field name="street" position="attributes">
23 <attribute name="required">1</attribute>
24 </field>
25 <xpath expr="//notebook[@name='Volunteer activities']" position="before">
26 <group colspan="4">
27 <field name="welcome_email"/>
28 <field name="opt_out" string="I don't want to receive the newsletter (one per month approximatively)." help="Information about bikecoop, animation, association, …"/>
29 </group>
30 </xpath>
31 </field>
32 </record>
33 <record id="view_bikecoop_l10n_fr_associate_member_form" model="ir.ui.view">
34 <field name="name">res.partner.form</field>
35 <field name="model">res.partner</field>
36 <field name="inherit_id" ref="bikecoop_l10n_fr.view_bikecoop_l10n_fr_associate_member_form"/>
37 <field name="arch" type="xml">
38 <xpath expr="//field[@name='email']" position="attributes">
39 <attribute name="required">1</attribute>
40 </xpath>
41 <xpath expr="//notebook[@name='Volunteer activities']" position="before">
42 <group colspan="4">
43 <field name="welcome_email"/>
44 <field name="opt_out" string="I don't want to receive the newsletter (one per month approximatively)." help="Information about bikecoop, animation, association, …"/>
45 </group>
46 </xpath>
47 </field>
48 </record>
49 <record model="ir.ui.view" id="view_pos_pos_form">
50 <field name="name">pos.order</field>
51 <field name="model">pos.order</field>
52 <field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
53 <field name="arch" type="xml">
54 <field name="discount" position="attributes">
55 <attribute name="invisible">1</attribute>
56 </field>
57 <field name="price_subtotal" position="replace" />
58 </field>
59 </record>
60 </data>
61 </openerp>