refactor: Se extraen archivos

This commit is contained in:
2024-01-26 22:21:23 -05:00
parent 4a3d178a92
commit cd0564c95f
19 changed files with 543 additions and 474 deletions

View File

17
core/Role/models/user.py Normal file
View File

@@ -0,0 +1,17 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model import fields
from trytond.pool import PoolMeta
class User(metaclass=PoolMeta):
"User"
__name__ = 'res.user'
user_admin = fields.Boolean('Is Admin')
@classmethod
def __setup__(cls):
super(User, cls).__setup__()
cls._context_fields.insert(0, 'user_admin')