diff options
| author | Rémy Baranx (bar) <bar@odoo.com> | 2020-03-19 12:59:09 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2020-03-19 12:59:09 +0000 |
| commit | b3d9647695065ea582e4a6b0603f3ebf9fde6976 (patch) | |
| tree | ff8f1a7700ad8240c4a31d547f3a546c578188f2 /addons/web/static/src/js/views/basic/basic_renderer.js | |
| parent | 8e64645b5a0f3864698052d2a2b828c19c5c2b5a (diff) | |
[IMP] web: use do_action instead of BBQ push_state on RedirectWarning
In the RedirectWarning exception handler, it is better
to use 'do_action()' instead of using a BBQ push_state() and then
a location.reload(), to preserve the context and avoid losing menus
and breadcrumbs for example.
As the RedirectWarning receives only the action ID and not the full
action, a new parameter has been added to be able to provide a context.
This context is added in the 'additional_context' parameter of the do_action()
TaskID: 2168071
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions
