mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_disable_export_group: Differenciate between the XLSX export and the standard export
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user