summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorAdrien Dieudonne <adr@odoo.com>2017-04-05 16:13:42 +0200
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commitef6b330d8fe298f30cfac6244d8795ff9ab5f19b (patch)
treed773c456ff5d8fd1e82b74f106fea86636e4569b /addons/web/static/src/js/views/basic/basic_model.js
parentb0fd99f261b9a89c7167c3ae2e33abac8d31f168 (diff)
[FIX] web: Form: avoid to change mode on button click
When clicking on a button in a form view, the current data should be saved but the form view shouldn't be re-rendered in readonly. Before this commit, the view was re-rendered, causing a weird glitch in dialogs as buttons that were supposed to be moved to the dialog's footer appeared inside the view when the button was clicked. Also forces the default mode in form view to readonly, so that it is correctly redrawn in readonly when coming back using the breadcrumbs.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions