summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/data.js
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2016-09-06 15:56:30 +0200
committerPierre Masereel <pim@odoo.com>2016-09-06 17:15:13 +0200
commit826ee793847364510160e8e464246d448273bb98 (patch)
treec4e3ab83f7419ab53c35fc53560c64084a96eebc /addons/web/static/src/js/framework/data.js
parentf19d179bb0311df7d79cdef7f2726e0ccb6b9e27 (diff)
[FIX] web: kanban: click on action in a vignette
It is possible to put a clickable object in a vignette that opens an action, for example the kanban_status class used in the CRM pipeline. This thing presents an issue as it opens a wizard, but when the wizard is closed the vignette is not reloaded. When you click on this item, it will go through `on_kanban_action_clicked` in kanban_record.js that will trigger up a `kanban_do_action` custom event. The kanban_view have an handler for this custom event and will call the `do_execute_action` method defined on the view. This method can take a callback as its last argument that will run when the wizard is closed. Before rev ae583ba1, the behavior was to reload the entire kanban view but this rev tries to only reload the kanban record. Unfortunately, it didn't use the argument in `do_execute_action` but in a then of this method. So it didn't work. This commit put the onclose callback at its right place.
Diffstat (limited to 'addons/web/static/src/js/framework/data.js')
0 files changed, 0 insertions, 0 deletions