Files
tryton/trytond/model/fields/boolean.py
T

24 lines
987 B
Python
Raw Normal View History

2009-02-03 18:58:25 +01:00
#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.fields.field import Field
class Boolean(Field):
2009-03-01 13:37:31 +01:00
'''
Define a boolean field (``True`` or ``False``).
'''
2009-02-03 18:58:25 +01:00
_type = 'boolean'
def __init__(self, string='', help='', readonly=False, domain=None,
2011-01-03 12:39:29 +01:00
states=None, change_default=False, select=0, on_change=None,
2011-01-07 10:58:43 +01:00
on_change_with=None, depends=None, order_field=None, context=None,
loading='eager'):
super(Boolean, self).__init__(string=string, help=help, required=False,
readonly=readonly, domain=domain, states=states,
2011-01-03 12:39:29 +01:00
change_default=change_default, select=select,
on_change=on_change, on_change_with=on_change_with,
2011-01-07 10:58:43 +01:00
depends=depends, order_field=order_field, context=context,
loading=loading)
__init__.__doc__ = Field.__init__.__doc__