[IMP] Make the answer field invisible when no answer is given from the user.
authorChandni Machchhar (OpenERP Trainee) <chandni.machchhar3@gmail.com>
Tue, 13 Aug 2013 10:22:34 +0000 (15:52 +0530)
committerChandni Machchhar (OpenERP Trainee) <chandni.machchhar3@gmail.com>
Tue, 13 Aug 2013 10:22:34 +0000 (15:52 +0530)
bzr revid: chandni.machchhar3@gmail.com-20130813102234-j744cawbp3k6u971

addons/survey/survey_view.xml

index 2a94dc5..89081ee 100644 (file)
                     <field name="survey_id"/>
                     <field name="user_id" on_change="on_change_user(user_id)"/>
                     <field name="email"/>
-                    <field name="response" readonly="1"/>
+                    <field name="response" readonly="1" attrs="{'invisible':[('response','=',False)]}"/>
                     </group>
                     </sheet>
                 </form>