Files
tryton/trytond/model/fields/boolean.py
T
Cédric Krier cc48eb8532 New search widget
- Change select on fields into Boolean
- Change format of search_value on ir.action.act_window

review95002
2011-10-03 09:45:21 +02:00

25 lines
991 B
Python

#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):
'''
Define a boolean field (``True`` or ``False``).
'''
_type = 'boolean'
def __init__(self, string='', help='', readonly=False, domain=None,
states=None, change_default=False, select=False, on_change=None,
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,
change_default=change_default, select=select,
on_change=on_change, on_change_with=on_change_with,
depends=depends, order_field=order_field, context=context,
loading=loading)
__init__.__doc__ = Field.__init__.__doc__