mirror of
https://github.com/NaN-tic/trytond-galatea_tutorial.git
synced 2023-12-14 02:32:55 +01:00
21 lines
781 B
Python
21 lines
781 B
Python
# This file is part galatea_tutorial 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
|
|
from trytond.pyson import Eval
|
|
|
|
__all__ = ['GalateaWebSite']
|
|
|
|
|
|
class GalateaWebSite:
|
|
__metaclass__ = PoolMeta
|
|
__name__ = "galatea.website"
|
|
tutorial_comment = fields.Boolean('Tutorial Comments',
|
|
help='Active tutorial comments.')
|
|
tutorial_anonymous = fields.Boolean('Tutorial Anonymous',
|
|
help='Active user anonymous to publish comments.')
|
|
tutorial_anonymous_user = fields.Many2One('galatea.user', 'Tutorial Anonymous User',
|
|
states={
|
|
'required': Eval('tutorial_anonymous', True),
|
|
})
|