Subflow support.
bzr revid: ame@tinyerp.com-20080922075547-5wqi826hsdw0hjbq
This commit is contained in:
parent
f2209f5e12
commit
aeabe5cc35
|
@ -81,6 +81,7 @@ class process_process(osv.osv):
|
|||
data['name'] = node.name
|
||||
data['model'] = (node.model_id or None) and node.model_id.model
|
||||
data['kind'] = node.kind
|
||||
data['subflow'] = (node.subflow_id or None) and node.subflow_id.id
|
||||
data['notes'] = node.note
|
||||
data['active'] = 0
|
||||
data['gray'] = 0
|
||||
|
@ -165,6 +166,7 @@ class process_node(osv.osv):
|
|||
'note': fields.text('Notes', translate=True),
|
||||
'model_id': fields.many2one('ir.model', 'Object', ondelete='set null'),
|
||||
'model_states': fields.char('States Expression', size=128),
|
||||
'subflow_id': fields.many2one('process.process', 'Subflow', ondelete='set null'),
|
||||
'flow_start': fields.boolean('Starting Flow'),
|
||||
'transition_in': fields.one2many('process.transition', 'target_node_id', 'Starting Transitions'),
|
||||
'transition_out': fields.one2many('process.transition', 'source_node_id', 'Ending Transitions'),
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
<newline/>
|
||||
<field name="kind" select="1"/>
|
||||
<field name="model_states"/>
|
||||
<field name="subflow_id"/>
|
||||
</group>
|
||||
<notebook colspan="4">
|
||||
<page string="Outgoing Transitions">
|
||||
|
@ -156,6 +157,7 @@
|
|||
<newline/>
|
||||
<field name="kind" select="1"/>
|
||||
<field name="model_states"/>
|
||||
<field name="subflow_id"/>
|
||||
</group>
|
||||
<notebook colspan="4">
|
||||
<page string="Outgoing Transitions">
|
||||
|
|
Loading…
Reference in New Issue