1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/documents/models/res_users.py
2024-12-10 09:04:09 +07:00

14 lines
370 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class Users(models.Model):
_name = 'res.users'
_inherit = ['res.users']
def _init_messaging(self):
res = super()._init_messaging()
res['hasDocumentsUserGroup'] = self.env.user.has_group('documents.group_documents_user')
return res