Merge lp:~openerp-dev/openerp-web/7.0-opw-602858ReadonlyFieldsInEditableListview-msh into lp:openerp-web/7.0
Status: | Merged |
---|---|
Merge reported by: | Mohammed Shekha(Open ERP) |
Merged at revision: | not available |
Proposed branch: | lp:~openerp-dev/openerp-web/7.0-opw-602858ReadonlyFieldsInEditableListview-msh |
Merge into: | lp:openerp-web/7.0 |
Diff against target: |
222 lines (+55/-21) 4 files modified
addons/web/static/src/css/base.css (+29/-8) addons/web/static/src/css/base.sass (+12/-1) addons/web/static/src/js/view_form.js (+4/-2) addons/web/static/src/js/view_list_editable.js (+10/-10) |
To merge this branch: | bzr merge lp:~openerp-dev/openerp-web/7.0-opw-602858ReadonlyFieldsInEditableListview-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mohammed Shekha(Open ERP) (community) | Needs Resubmitting | ||
Martin Trigaux (OpenERP) (community) | Needs Fixing | ||
Naresh(OpenERP) | Pending | ||
Xavier (Open ERP) | Pending | ||
Review via email: mp+212353@code.launchpad.net |
Description of the change
Hello,
Fixed the issue of readonly field not displayed in editable listview which creates issue with onchange result, result of onchange doesn't diplayed untill editable row is saved, the reason is we kept readonly field invisible in edition form and that's why that readonly field widget doesn't positioned as the place edition form and simple cell is displayed, onchange result calls set_value but value is set on hidden element which is not displayed on edition form.
We have this issues due to two layer, for readonly field we do not displays form fields from form layer instead we just show simple td with span.
Demo:- Add one readonly field in any editable one2many listview and get the value of that field from onchange of another field, you will see when you change the value of the field, readonly field is not affected with value returned by onchange, when we save the whole line at that time we get the value of onchange.
Removed this complication of two layersm instead displayed all form fields, even if it is readonly and cahnged css accordingly, also changd css for float, integer and handle widget as a specical case.
Thanks.
Hello,
Sorry but this still does not work. For instance go to "customer payment" view, add a line (where we have some readonly fields), you will get "Uncaught TypeError: Cannot read property '$input' of undefined".
Regards