<field name="type">form</field>
<field name="priority" eval="8"/>
<field name="arch" type="xml">
- <form string="Bikecoop Member">
- <group colspan="4" col="4">
- <field name="name" colspan="4"/>
- </group>
- <newline/>
- <group string="Postal address" colspan="4">
- <field name="address" nolabel="1" mode="form">
- <form string="Address">
- <field name="zip"/>
- <field name="city"/>
- <field name="street" colspan="4"/>
- <field name="street2" colspan="4"/>
- <field name="email" colspan="4"/>
- </form>
- </field>
- </group>
- <group string="Civil informations" colspan="4">
- <field name="date" string="Birthdate" colspan="4"/>
- <field name="gender_id" domain="[('domain','=', 'gender')]" required="1" colspan="4"/>
- <field name="nationality_id" required="1" colspan="4"/>
- <field name="occupation_id" required="1" domain="[('domain','=', 'occupation')]" colspan="4"/>
- </group>
- <group string="Volunteer activities" colspan="4">
- <separator string="Want to be volunteer?" colspan="4"/>
- <field name="volunteer_ids" domain="[('domain','=', 'volunteer')]" colspan="4" nolabel="1"/>
- <separator string="Other volunteer activities" colspan="4"/>
- <field name="comment" colspan="4" nolabel="1"/>
+ <form string="Bikecoop Member" version="7.0">
+ <sheet>
+ <field name="image" widget="image" class="oe_left oe_avatar" options='{"preview_image": "image_medium", "size": [90, 90]}'/>
+ <div class="oe_title">
+ <div class="oe_edit_only">
+ <label for="name"/> (
+ <field name="is_company"/> <label for="is_company"/>)
+ </div>
+ <h1>
+ <field name="name"/>
+ </h1>
+ </div>
+ <group>
+ <group>
+ <label for="street" string="Postal address"/>
+ <div>
+ <field name="zip" placeholder="Zip code"/>
+ <field name="city" placeholder="CITY"/>
+ <field name="country_id" placeholder="Country"/>
+ <field name="street" placeholder="Street ..."/>
+ <field name="street2" placeholder="..."/>
+ <field name="email" widget="email" placeholder="email"/>
+ <field name="phone" placeholder="e.g. +32.81.81.37.00"/>
+ </div>
+ </group>
+ <group attrs="{'invisible': [('is_company','=',True)]}">
+ <field name="date" string="Birthdate"/>
+ <field name="gender_id" domain="[('domain','=', 'gender')]" placeholder="Other, Female or Male" attrs="{'required': [('is_company','=', False)]}"/>
+ <field name="nationality_id" placeholder="France" domain="[('is_company','=', False)]" attrs="{'required': [('is_company','=', False)]}"/>
+ <field name="occupation_id" domain="[('domain','=', 'occupation')]" attrs="{'required': [('is_company','=', False)]}"/>
+ </group>
</group>
+ <notebook>
+ <page string="Volunteer activities" attrs="{'invisible': [('is_company','=',True)]}">
+ <label string="Want to be volunteer in ..."/>
+ <field name="volunteer_ids" domain="[('domain','=', 'volunteer')]" string="Want to be volunteer in ..."/>
+ <label string="Other volunteer activities"/>
+ <field name="comment"/>
+ </page>
+ </notebook>
+ </sheet>
</form>
</field>
</record>