[IMP] Fix field visibility problem.
authorTejas Tank <tta@openerp.com>
Tue, 3 Jul 2012 06:43:32 +0000 (12:13 +0530)
committerTejas Tank <tta@openerp.com>
Tue, 3 Jul 2012 06:43:32 +0000 (12:13 +0530)
bzr revid: tta@openerp.com-20120703064332-w13ysbifmwwhef8p

addons/survey/wizard/survey_answer.py

index a0c35be..3723c8a 100644 (file)
@@ -202,7 +202,7 @@ class survey_question_wiz(osv.osv_memory):
 
                     if wiz_id:
                         fields["wizardid_" + str(wiz_id)] = {'type':'char', 'size' : 255, 'string':"", 'views':{}}
-                        etree.SubElement(xml_form, 'field', {'invisible':'1','name': "wizardid_" + str(wiz_id),'default':str(lambda *a: 0)})
+                        etree.SubElement(xml_form, 'field', {'invisible':'1','name': "wizardid_" + str(wiz_id),'default':str(lambda *a: 0),'modifiers':'{"invisible":true}'})
 
                     if pag_rec.note:
                         xml_group = etree.SubElement(xml_form, 'group', {'col': '1', 'colspan': '4'})