summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-02-27 16:15:54 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit1a0702f1e20a8347a1135ade60858f5905bbca2d (patch)
tree081fdb9f6bcdc8dee0603c06b5e16bd6517055f4 /addons/web/static/src/js/views/basic/basic_model.js
parent4d12ec87bcb95150e82c519d7c8ac51b75ef9968 (diff)
[FIX] web: properly handles dirty data in form views
Before this commit, we only consider the BasicModel point of view to determine if a record is dirty. It is good when we want to determine if it is actually necessary to save the data, but not correct when we want to know if some changes can be discarded. With this commit, the form controller keeps track of its 'dirty' state, coming from user interactions. It uses this flag to determine if changes can be discarded.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions