mirror of
https://github.com/NaN-tic/trytond-galatea_blog-old.git
synced 2023-12-14 02:03:04 +01:00
22 lines
723 B
Python
22 lines
723 B
Python
|
#This file is part galatea_blog 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']
|
||
|
__metaclass__ = PoolMeta
|
||
|
|
||
|
|
||
|
class GalateaWebSite:
|
||
|
__name__ = "galatea.website"
|
||
|
blog_comment = fields.Boolean('Blog comments',
|
||
|
help='Active blog comments.')
|
||
|
blog_anonymous = fields.Boolean('Blog anonymous',
|
||
|
help='Active blog anonymous comments.')
|
||
|
blog_anonymous_user = fields.Many2One('galatea.user', 'Anonymous User',
|
||
|
states={
|
||
|
'required': Eval('blog_anonymous', True),
|
||
|
})
|