[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 David
parent f1fe2a9547
commit dc35109185
18 changed files with 166 additions and 153 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