Chirag Patel (OpenERP) has proposed merging
lp:~openerp-dev/openobject-client-web/6.0-opw-381969-cpa into
lp:openobject-client-web.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-381969-cpa/+merge/91402
Hello,
If the user has only "read" access for any object and the field has attrs set
on it. In that case when you login with the user and select the object view the
field is in the editable mode.
1. create a user "Test". Assign the group "partner manager","employee" give the
access rights as "read" on the object "product.product" in both the group.
2. login with the User "Test" and open the product form.
3. you will see that the "Cost Price" field and the other field those have
attrs set are in the editable mode.
The proposed patch fixes this issue.
Kindly review the branch and share your views on it.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-381969-cpa/+merge/91402
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client-web/6.0-opw-381969-cpa.
=== modified file 'addons/openerp/static/javascript/form_state.js'
--- addons/openerp/static/javascript/form_state.js 2011-10-11 12:52:43 +0000
+++ addons/openerp/static/javascript/form_state.js 2012-02-03 10:13:41 +0000
@@ -278,7 +278,7 @@
var $field = typeof(fieldName) == "string" ? jQuery(idSelector(fieldName)) : jQuery(fieldName);
- if (!$field.length) {
+ if (!$field.length || parseInt($field.attr("fld_readonly"))) {
return;
}
_______________________________________________
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