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

Requested reviews:
  OpenERP Core Team (openerp)

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

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."

This field contains invisible : 1 attribute so field/element should hide.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-575267-bth/+merge/110527
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/6.1-opw-575267-bth.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js	2012-06-14 08:40:09 +0000
+++ addons/web/static/src/js/view_form.js	2012-06-15 13:40:27 +0000
@@ -1468,6 +1468,9 @@
     },
     update_dom: function() {
         this._super.apply(this, arguments);
+        if (this.node.attrs.invisible) {
+            this.$element.find('input').hide();
+        }
         this.$element.find('input').prop('readonly', this.readonly);
     },
     set_value_from_ui: function() {

_______________________________________________
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