diff --git a/report_xlsx/static/src/js/report/action_manager_report.esm.js b/report_xlsx/static/src/js/report/action_manager_report.esm.js index 436cccf9a5..dd85ed84e8 100644 --- a/report_xlsx/static/src/js/report/action_manager_report.esm.js +++ b/report_xlsx/static/src/js/report/action_manager_report.esm.js @@ -8,14 +8,8 @@ registry if (action.report_type === "xlsx") { const type = action.report_type; let url = `/report/${type}/${action.report_name}`; - for (const key_data in action.data) { - action.context[key_data] = action.data[key_data]; - } const actionContext = action.context || {}; if (action.data && JSON.stringify(action.data) !== "{}") { - if (!url.includes(`/${actionContext.active_id}`)) { - url += `/${actionContext.active_id}`; - } // Build a query string with `action.data` (it's the place where reports // using a wizard to customize the output traditionally put their options) const action_options = encodeURIComponent(JSON.stringify(action.data)); @@ -36,7 +30,7 @@ registry url: "/report/download", data: { data: JSON.stringify([url, action.report_type]), - context: JSON.stringify(actionContext), + context: JSON.stringify(user.context), }, }); } finally {