2017-03-16 18:48:43 +01:00
|
|
|
# This file is part electronic_mail module for Tryton.
|
|
|
|
# The COPYRIGHT file at the top level of this repository contains
|
|
|
|
# the full copyright notices and license terms.
|
|
|
|
from trytond.pool import PoolMeta
|
|
|
|
from trytond.model import fields
|
|
|
|
|
|
|
|
__all__ = ['User']
|
|
|
|
|
|
|
|
|
2018-09-15 18:09:14 +02:00
|
|
|
class User(metaclass=PoolMeta):
|
2017-03-16 18:48:43 +01:00
|
|
|
__name__ = "res.user"
|
2018-06-03 11:21:10 +02:00
|
|
|
signature_html = fields.Text('Signature HTML')
|
2017-03-16 18:48:43 +01:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def __setup__(cls):
|
|
|
|
super(User, cls).__setup__()
|
|
|
|
if not cls._preferences_fields:
|
|
|
|
cls._preferences_fields = []
|
|
|
|
cls._preferences_fields.append('signature_html')
|