[VIEW] ~tuning
[burette/ptitvelo.git] / view / ptitvelo.xml
index 8799d46..98d752e 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <openerp>
     <data>
-        <record id="view_bikecoop_l10n_fr_members_form" model="ir.ui.view">
+        <record id="view_bikecoop_members_form" model="ir.ui.view">
             <field name="name">res.partner.form</field>
             <field name="model">res.partner</field>
             <field name="inherit_id" ref="bikecoop.view_bikecoop_members_form"/>
@@ -9,6 +9,19 @@
                 <xpath expr="//field[@name='email']" position="attributes">
                     <attribute name="required">1</attribute>
                 </xpath>
+                <field name="nationality_id" position="replace"/>
+                <field name="zip" position="attributes">
+                    <attribute name="required">1</attribute>
+                </field>
+                <field name="city" position="attributes">
+                    <attribute name="required">1</attribute>
+                </field>
+                <field name="country_id" position="attributes">
+                    <attribute name="required">1</attribute>
+                </field>
+                <field name="street" position="attributes">
+                    <attribute name="required">1</attribute>
+                </field>
                 <xpath expr="//notebook[@name='Volunteer activities']" position="before">
                     <group colspan="4">
                         <field name="welcome_email"/>
                 </xpath>
             </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='email']" position="attributes">
+                    <attribute name="required">1</attribute>
+                </xpath>
+                <xpath expr="//notebook[@name='Volunteer activities']" position="before">
+                    <group colspan="4">
+                        <field name="welcome_email"/>
+                        <field name="opt_out" string="I don't want to receive the newsletter (one per month approximatively)." help="Information about bikecoop, animation, association, …"/>
+                    </group>
+                </xpath>
+            </field>
+        </record>
+        <record model="ir.ui.view" id="view_pos_pos_form">
+            <field name="name">pos.order</field>
+            <field name="model">pos.order</field>
+            <field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
+            <field name="arch" type="xml">
+                <field name="discount"  position="attributes">
+                    <attribute name="invisible">1</attribute>
+                </field>
+                <field name="price_subtotal" position="replace" />
+            </field>
+        </record>
     </data>
 </openerp>