Chirag Patel (OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/6.1-opw-578436-cpa 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-578436-cpa/+merge/121992

Hello,

Fixed reference field doesn't support readonly state.

Demo : Sales > Configuration > Calendar > Event Invitations
1) In Form view.

Observed: when you select any object in this field "Event Ref", m2o field will 
not readonly.
Expected: m2o field should be readonly because in form view "Event Ref" field 
set as readonly = "1".

Set the behavior same as GTk client.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-578436-cpa/+merge/121992
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/6.1-opw-578436-cpa.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js	2012-08-14 14:53:50 +0000
+++ addons/web/static/src/js/view_form.js	2012-08-30 06:38:18 +0000
@@ -3421,6 +3421,10 @@
         } else {
             return false;
         }
+    },
+    update_dom: function() {
+        this._super.apply(this, arguments);
+        this.m2o.readonly = this.readonly;
     }
 });
 

_______________________________________________
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