summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/pivot/pivot_controller.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-05-26 14:19:09 +0200
committerGéry Debongnie <ged@odoo.com>2017-05-26 15:02:36 +0200
commit1d57f89380b3b23aed9404fdd70a63274d3ca99a (patch)
tree913547694d3778b3a5bdca17d6bf9fc90ced79d5 /addons/web/static/src/js/views/pivot/pivot_controller.js
parentdcde0aaf30fa52f59341edb274bab02e8e9aea88 (diff)
[FIX] web: properly react when save operation fails (form)
Before this commit, the save method in the basic model did not properly react when the rpc fails. In that case, the returned deferred stayed indefinitely in the 'pending' state. This is a big problem, because the basic controller put that deferred in a mutex. As a result, every subsequent operations (including field changes!) were indefinitely delayed. To reproduce the issue, you can find any form view where some python business logic will cause a fail in some cases. For example, create a new inventory adjustement, click on 'Start inventory', then add a line in the x2many with the same product as another line. Saving that record will fail, but then, the form view is broken: no interaction will work.
Diffstat (limited to 'addons/web/static/src/js/views/pivot/pivot_controller.js')
0 files changed, 0 insertions, 0 deletions