Merge lp:~openerp-dev/openobject-client-web/6.0-opw-516504-msh into lp:openobject-client-web
Status: | Merged |
---|---|
Merged at revision: | 4800 |
Proposed branch: | lp:~openerp-dev/openobject-client-web/6.0-opw-516504-msh |
Merge into: | lp:openobject-client-web |
Diff against target: |
22 lines (+6/-5) 1 file modified
addons/openerp/controllers/listgrid.py (+6/-5) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-client-web/6.0-opw-516504-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vaibhav Darji (community) | Approve | ||
Review via email: mp+96061@code.launchpad.net |
Description of the change
Hello,
Fixed the issue of many2many in which record is disappeared when we selects some record from manymany and without saving parent record when we edit many2many record and save it, the records of many2many which we just selected will disappeared.
Demo :- To face this issue make tree view of account.tax editable, now go to Products -> Edit any product -> account tax(many2many field) in Accounting tab -> Select some records in many2many field now without saving the parent record of product edit any many2many record and save it, you will see the record will disappeared from the list.
Reason :- The reason is when we edit and save the record for editable list view at that time save method of listgrid.py is called, here we replace the ids by all_ids, all_ids is the result of read method, here we have not saved parent record so database does not contains that many2many entries with this product.
Hence changed the code to fix this issue.
Thanks.