Fix: Se añade dominio en seguiemiento de prospectos por rol
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
97bbcaed92
commit
c32b4ce31c
17
user.py
Normal file
17
user.py
Normal 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')
|
9
view/user_form.xml
Normal file
9
view/user_form.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="//field[@name='name']" position="after">
|
||||
<label name="user_admin"/>
|
||||
<field name="user_admin"/>
|
||||
</xpath>
|
||||
</data>
|
Loading…
Reference in New Issue
Block a user