Merge lp:~openerp-dev/openerp-web/7.0-opw-602858-msh into lp:openerp-web/7.0
Status: | Rejected |
---|---|
Rejected by: | Martin Trigaux (OpenERP) |
Proposed branch: | lp:~openerp-dev/openerp-web/7.0-opw-602858-msh |
Merge into: | lp:openerp-web/7.0 |
Diff against target: |
60 lines (+5/-9) 4 files modified
addons/web/static/src/css/base.css (+2/-2) addons/web/static/src/css/base.sass (+1/-1) addons/web/static/src/js/view_form.js (+2/-1) addons/web/static/src/js/view_list_editable.js (+0/-5) |
To merge this branch: | bzr merge lp:~openerp-dev/openerp-web/7.0-opw-602858-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Trigaux (OpenERP) (community) | Needs Fixing | ||
Vinay Rana (OpenERP) | Pending | ||
Naresh(OpenERP) | Pending | ||
Review via email: mp+204480@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, also considered some other scenarios like many2one throws after setting field to visible so checked if many2one field is effective_readonly, also span in current row should not be displayed in edition mode.
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.
Thanks.
Unmerged revisions
- 4113. By Mohammed Shekha(OpenERP)<email address hidden>
-
[FIX]Web: Fixed the issue of readonly field not displayed 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, also considered some other scenarios like many2one throws after setting field to visible so checked if many2one field is effective_readonly, also span in current row should not be displayed in edition mode.
Hrllo,
Why do you change the css ? It does not seem to have any impact.
With this patch the on_change put the value in the top-left corner, it should be put at the right (or at least in the middle-left side, not top).