[IMP] web_disable_export_group: black, isort, prettier

This commit is contained in:
João Marques
2020-10-20 08:53:33 +01:00
committed by David
parent a67fcc798f
commit 1afdc79e56
6 changed files with 56 additions and 53 deletions

View File

@@ -6,13 +6,15 @@ from odoo.http import request
class Http(models.AbstractModel):
_inherit = 'ir.http'
_inherit = "ir.http"
def session_info(self):
res = super(Http, self).session_info()
user = request.env.user
res.update({
'group_export_data': user and user.has_group(
'web_disable_export_group.group_export_data'),
})
res.update(
{
"group_export_data": user
and user.has_group("web_disable_export_group.group_export_data"),
}
)
return res