Merge lp:~openerp-dev/openobject-client-web/6.0-opw-591803-msh into lp:openobject-client-web
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-client-web/6.0-opw-591803-msh |
Merge into: | lp:openobject-client-web |
Diff against target: |
15 lines (+4/-1) 1 file modified
addons/openerp/static/javascript/form_state.js (+4/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-client-web/6.0-opw-591803-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+163090@code.launchpad.net |
Description of the change
Hello,
Fixed the issue of attrs not working on editable listview based on boolean field with browser Chrome.
Demo: To reproduce add two fields in the view char and boolean field not char field will have attrs based on boolean field like attrs="{'readonly': [('yourBooleanF
Reason: for Boolean field we have globally bind the click event for Boolean fields which changes the value of boolean to "1" or "0", also we binded change event also for each field, so in chrome before onBooleanClicked called it calls change event so value of boolean field comes wrong and on second it gives the value of last changed.
So for editable listview forcefull called onBooleanClicked first.
Thanks.
Unmerged revisions
- 4913. By Mohammed Shekha<email address hidden>
-
[FIX]Fixed the issue of attrs on editable listview which are not working with boolean field on chrome.
Hello,
It seems the global isse for editable list view, it does not seems the issue of change event called first in chrome, so this issue requires better fix from form_state.js
Thanks.