summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/chrome/action_manager_act_window.js
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2018-12-11 10:00:52 +0000
committerMartin Geubelle <mge@odoo.com>2018-12-11 10:02:03 +0000
commitc70a36961f9233f4537e726d36441b2797fec1b9 (patch)
tree25b8d1e02abc26a71116094226d36854c0c5ec33 /addons/web/static/src/js/chrome/action_manager_act_window.js
parent0ba9daa2ce9daedcf53c0da77d00e50aed41ae7f (diff)
[FIX] web: correct load act_window with empty id
There was a traceback when reloading the webclient with an act_window and an empty id in the URL (ex: after saving Settings). A `read` without id was peformed when loading data instead of a `default_get`. Before rev. odoo/odoo@40dd121 the action environment was generated by the ActionManagerActWindow, which was currently defaulting the `currentId`. Now that this is not the case anymore, the `loadState` should have this responsability. Task 1902826 closes odoo/odoo#29411
Diffstat (limited to 'addons/web/static/src/js/chrome/action_manager_act_window.js')
-rw-r--r--addons/web/static/src/js/chrome/action_manager_act_window.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/chrome/action_manager_act_window.js b/addons/web/static/src/js/chrome/action_manager_act_window.js
index 1a688ffa6b2..04b06377d3f 100644
--- a/addons/web/static/src/js/chrome/action_manager_act_window.js
+++ b/addons/web/static/src/js/chrome/action_manager_act_window.js
@@ -93,7 +93,7 @@ ActionManager.include({
action = state.action;
options = _.extend(options, {
additional_context: context,
- resID: state.id,
+ resID: state.id || undefined, // empty string with bbq
viewType: state.view_type,
});
}