summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-03-22 15:23:16 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit145e89604d4c3ca9078403e9892dc38173f81bef (patch)
treed4f4b2c7eb23ce741ef152e79aa059b043c74da2 /addons/web/static/src/js/views/basic
parent6bad524bb356654208a9bc9dada0de2cfc67b0af (diff)
[FIX] web: Kanban: record quickcreate: fail handler
When the user quick creates a record in a grouped kanban view, a name_create RPC is done. This RPC may fail, and there were several issues with the fail handler. First, those fail handlers take 2 params: an object describing the error, and a JQuery event. The event was the first argument in the handler, so it crashes on event.preventDefault(). Second, when the name_create fails, a FormViewDialog in edit should be open. Former code opened a SelectCreateDialog. This commit also ensures that the default values are correctly given to the form in the dialog, through the context.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions