[MODULE][VIEW] ~multiple customization
[burette/velocampus_nantes.git] / view / bikecoop.xml
diff --git a/view/bikecoop.xml b/view/bikecoop.xml
new file mode 100644 (file)
index 0000000..e9d0c10
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+    <data>
+        <record id="view_bikecoop_l10n_fr_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"/>
+            <field name="arch" type="xml">
+                <xpath expr="//field[@name='nationality_id']" position="replace">
+                    <field name="nationality_id" placeholder="France"/>
+                </xpath>
+                <field name="mobile" position="replace"/>
+                <xpath expr="//field[@name='occupation_id']" position="after">
+                    <field name="highschool_years" />
+                </xpath>
+                <xpath expr="//label[@string='Want to be volunteer in ...']" position="replace">
+                </xpath>
+                <xpath expr="//field[@name='volunteer_ids']" position="replace">
+                    <group>
+                        <field name="is_volunteer" string="Do you want to be volunteer?"/>
+                    </group>
+                    <label for="volunteer_ids" string="Want to be volunteer in …" attrs="{'invisible': [('is_volunteer','=', False)]}"/>
+                    <field name="volunteer_ids" attrs="{'invisible': [('is_volunteer','=', False)]}" domain="[('domain','=', 'volunteer')]">
+                        <form string="Volunteer activities" version="7.0">
+                            <field name="name"/>
+                        </form>
+                        <tree string="Volunteer activities">
+                            <field name="name"/>
+                        </tree>
+                    </field>
+                </xpath>
+            </field>
+        </record>
+    </data>
+</openerp>