diff options
| author | Aaron Bohy <aab@odoo.com> | 2017-03-22 15:23:16 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | 145e89604d4c3ca9078403e9892dc38173f81bef (patch) | |
| tree | d4f4b2c7eb23ce741ef152e79aa059b043c74da2 /addons/pos_cache/static/src/js/pos_cache.js | |
| parent | 6bad524bb356654208a9bc9dada0de2cfc67b0af (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/pos_cache/static/src/js/pos_cache.js')
0 files changed, 0 insertions, 0 deletions
