Merge lp:~openerp-dev/openerp-web/7.0-opw-605931-msh into lp:openerp-web/7.0
Status: | Merged |
---|---|
Merged at revision: | 4172 |
Proposed branch: | lp:~openerp-dev/openerp-web/7.0-opw-605931-msh |
Merge into: | lp:openerp-web/7.0 |
Diff against target: |
13 lines (+3/-0) 1 file modified
addons/web/static/src/js/view_form.js (+3/-0) |
To merge this branch: | bzr merge lp:~openerp-dev/openerp-web/7.0-opw-605931-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Trigaux (OpenERP) (community) | Approve | ||
Naresh(OpenERP) | Pending | ||
Review via email: mp+215598@code.launchpad.net |
Description of the change
Hello,
Fixed the issue of duplicated one2many lines, weired behavior when you added one2many line and then add another line without filling required field and then click on save(Parent record Save button), then remove added one2many line for which we didn't filled required data and then save it, you will get duplicated lines.
Demo: To repdocue this issue please go through document given if following bug report or second video.
https:/
Reason: While save the record web-client maintains save_list, so when Parent record save button is clicked it call process_operation and it commit value for each field and hence commit_Value called for one2many which saves one2many record and hence save is called for one2many form it fails and we do no handle fail call back, we should pop save_obj from save_list in fails callback.
Thanks.
LGTM, thanks
revno: 4172 [merge]
revision-id: <email address hidden>