Bhumi Thakkar (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-575267-bth into 
lp:openobject-addons/6.1.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-575267-bth/+merge/113036

Hello,

   In WEB Open any survey You find extra unused field.

1. Tools => Survey => Define Surveys => Surveys.
2. Open any record.
3. click on any button (test survey/answer survey/edit survey)

Observed: "extra textbox/field is displyed"
Expected: "unnecessary field should not displayed."

In survey_answer.py file, field should add 'modifiers':'{"invisible":true}'.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-575267-bth/+merge/113036
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-575267-bth.
=== modified file 'survey/wizard/survey_answer.py'
--- survey/wizard/survey_answer.py	2012-01-31 13:36:57 +0000
+++ survey/wizard/survey_answer.py	2012-07-02 13:15:24 +0000
@@ -162,7 +162,7 @@
 
                     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'})

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to