[IMP] web_disable_export_group: Differenciate between the XLSX export and the standard export

This commit is contained in:
Enric Tobella
2021-10-26 17:06:13 +02:00
committed by Víctor Martínez
parent 5b13839e46
commit 676db1f5c3
13 changed files with 70 additions and 104 deletions

View File

@@ -13,8 +13,8 @@ class Http(models.AbstractModel):
user = request.env.user
res.update(
{
"group_export_data": user
and user.has_group("web_disable_export_group.group_export_data"),
"group_xlsx_export_data": user
and user.has_group("web_disable_export_group.group_export_xlsx_data"),
}
)
return res