trytond-galatea_blog-old/galatea.py

22 lines
723 B
Python
Raw Normal View History

2014-05-27 12:17:33 +02:00
#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),
})