summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2018-08-30 11:06:47 +0200
committerAaron Bohy <aab@odoo.com>2018-09-05 08:47:21 +0200
commit06e6887950e0ffad597ac494a03624cdf0375276 (patch)
tree16c637a61fc74853ec55e4ca56a3b6cc23e683b5 /addons/web/static/src/js/views/basic/basic_controller.js
parentf29f131f859c18020447bc0a08d073843beeb8ba (diff)
[FIX] web: Kanban: quick create with correct values
Let's assume a quick create form view with an onchange. Before this rev., if the user set a value for the char field with onchange, then clicked on 'Add', the record was created before the onchange was applied, and thus with incorrect/incomplete data. The reason is that, when clicking on 'Add', the user triggers a 'change' event on the char field, which notifies the model of its new value. Then, as 'Add' is clicked, the quick create widgets asks all widgets to commit their potential (uncommitted yet) changes. But there is nothing left to commit as the changes have just been notified. The quick create only waits for this to make the create RPC, and thus totally ignores the changes that were committed at the first place. Task 1878254.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions