Merge lp:~openerp-dev/openobject-client-web/6.0-opw-583890-cpa into lp:openobject-client-web
Proposed by
Chirag Patel (OpenERP)
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-client-web/6.0-opw-583890-cpa |
Merge into: | lp:openobject-client-web |
Diff against target: |
42 lines (+6/-1) 3 files modified
addons/openerp/controllers/form.py (+2/-1) addons/openerp/static/javascript/form.js (+1/-0) addons/openerp/static/javascript/m2m.js (+3/-0) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-client-web/6.0-opw-583890-cpa |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Xavier ALT (community) | Needs Fixing | ||
Review via email: mp+142447@code.launchpad.net |
Description of the change
Hello,
m2m not support readonly attrs.
Steps:
1) Customize the users form view by adding the following attrs on groups_id field: {'readonly'
2) Create new user.
3) Enter name "test".
Observed: Groups box is slightly greyed out, but add button still not readonly.
Expected: The add button on the groups box should not be clickable.
Thanks
To post a comment you must log in.
Unmerged revisions
- 4913. By Chirag Patel (OpenERP)
-
[FIX] Remove edit,add and delete button in readonly m2m.
Hi,
Commit is fine, but doesn't fix all use-cases:
Case 1:
=======
1a. Do steps 1), 2), 3) => button "Add" is disabled (so this is ok)
2a. Then clic on the column header "Name"
Observed: many2many widget is reloaded - but attrs seems to not be re-applied => widget still grey-out, but button is re-enabled.
Expected: both widget and button should be inactive.
Case 2:
=======
1a. Do steps 1), 2), 3) => button "Add" is disabled (so this is ok)
2a. Then try to remove one of the proposed default group (ex: Employee) from the many2many by clicking the cross "x"
Observed: item is really removed from the many2many
Expected: as readonly, we should not be able to remove item from the list.
Regards,
Xavier