summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/relational_fields.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-05-16 15:02:58 +0200
committerAaron Bohy <aab@odoo.com>2017-05-17 08:10:49 +0200
commit0f9e986c468702ebe55860895ef8d8b84c90a48c (patch)
tree27ed0b34170d26560fd253d5fdbf1330dbd5055e /addons/web/static/src/js/fields/relational_fields.js
parent5afe894f440eff3b58134d14fa7c9b43b19fe88b (diff)
[FIX] web: BasicModel: discard changes when reloading
... from a new record. Steps to reproduce the issue: - go to a multi-record view (e.g. list) of basically any model - click on 'Create' -> it opens a form view in edit mode - click on 'Discard' -> it goes back to the list - click on an existing record -> it should open the selected record in readonly. However, it didn't display the data of the selected record, but the default data of a new record (the result of a default_get). This was because the changes weren't properly discarded when reloading from a new record (it rather restored the record to its initial state, i.e. to the result of the default_get).
Diffstat (limited to 'addons/web/static/src/js/fields/relational_fields.js')
0 files changed, 0 insertions, 0 deletions