Files
tryton/trytond/model/active.py
T
Cédric Krier 589e27cc87 Add lazy_gettext
issue8560
review283901002
2019-08-25 13:00:28 +02:00

17 lines
482 B
Python

# This file is part of Tryton. The COPYRIGHT file at the toplevel of this
# repository contains the full copyright notices and license terms.
from trytond.i18n import lazy_gettext
from trytond.model import fields
class DeactivableMixin(object):
"Mixin to allow to soft deletion of records"
active = fields.Boolean(
lazy_gettext('ir.msg_active'),
help=lazy_gettext('ir.msg_active_help'))
@classmethod
def default_active(cls):
return True