[13.0][FIX]report_xlsx multi-company bug : context dropping (hence also allowed_company_ids) causing access errors in multi-company environment

This commit is contained in:
Luc De Meyer
2021-01-23 19:17:16 +01:00
committed by nguyenhk
parent 31a8f5da1c
commit cf04001029

View File

@@ -39,6 +39,7 @@ odoo.define("report_xlsx.report", function (require) {
url: new_url, url: new_url,
data: { data: {
data: JSON.stringify([new_url, type]), data: JSON.stringify([new_url, type]),
context: JSON.stringify(cloned_action.context),
}, },
success: resolve, success: resolve,
error: (error) => { error: (error) => {