1
# This file is part of Tryton. The COPYRIGHT file at the top level of this
2
# repository contains the full copyright notices and license terms.
4
from trytond.model import ModelSQL, Workflow, fields
11
class WorkflowedModel(Workflow, ModelSQL):
13
__name__ = 'test.workflowed'
14
state = fields.Selection([
16
('running', 'Running'),
22
super(WorkflowedModel, cls).__setup__()
23
cls._transitions |= set((
28
def default_state(cls):
32
@Workflow.transition('running')
33
def run(cls, records):