Merge lp:~openerp-dev/openerp-web/6.1-opw-576121-bth into lp:openerp-web/6.1
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openerp-web/6.1-opw-576121-bth |
Merge into: | lp:openerp-web/6.1 |
Diff against target: |
36 lines (+7/-6) 1 file modified
addons/web/static/src/js/view_form.js (+7/-6) |
To merge this branch: | bzr merge lp:~openerp-dev/openerp-web/6.1-opw-576121-bth |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Xavier (Open ERP) (community) | Needs Information | ||
Review via email: mp+112496@code.launchpad.net |
Description of the change
Hello,
web client makes multiple reads when clicking a button to perform action.Order of requests is not proper.
1. Sales => Sales => Sales Orders
2. Open any record and click on any button for example compute.
Observed: 'Main record is going to be saved of current model ('sale.order') then related models ('sale.order.line') records are going to be saved and then action is going to perform.'
Expected: 'First Action should perform then records of current model and related model should save.'
Order of request is changed on execute action. First call function of action perform and the recursive_save function and reload.
Thanks.
Unmerged revisions
- 2378. By Bhumi Thakkar (Open ERP)
-
[FIX] Reload on button action.
- 2377. By Bhumi Thakkar (Open ERP)
-
[FIX] Order of request is changed on action of button.
> First Action should perform then records of current model and related model should save.
That does not make sense, it means if user changed information in form or line when executing action action is always going to see old data, then data is going to be reloaded, and new data is going to be lost.