[VIEW] ~selection widget for gender and occupation in partner form
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 5 Jun 2015 13:55:54 +0000 (15:55 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 5 Jun 2015 13:55:54 +0000 (15:55 +0200)
view/bikecoop.xml

index d285681..b2cb198 100644 (file)
@@ -45,9 +45,9 @@
                             </group>
                             <group attrs="{'invisible': [('is_company','=',True)]}">
                                 <field name="year" placeholder="1900" attrs="{'required': [('is_company','=', False)]}"/>
-                                <field name="gender_id" domain="[('domain','=', 'gender')]" placeholder="Other, Female or Male" attrs="{'required': [('is_company','=', False)]}"/>
+                                <field name="gender_id" domain="[('domain','=', 'gender')]" placeholder="Other, Female or Male" attrs="{'required': [('is_company','=', False)]}" widget="selection"/>
                                 <field name="nationality_id" placeholder="France" attrs="{'required': [('is_company','=', False)]}"/>
-                                <field name="occupation_id" placeholder="Student/Employee/Other" domain="[('domain','=', 'occupation')]" attrs="{'required': [('is_company','=', False)]}"/>
+                                <field name="occupation_id" placeholder="Student/Employee/Other" domain="[('domain','=', 'occupation')]" attrs="{'required': [('is_company','=', False)]}" widget="selection"/>
                             </group>
                         </group>
                         <notebook name="Volunteer activities">