[IMP] workflow :- add domain in workflow field.
bzr revid: ysa@tinyerp.co.in-20100402090227-6yqr461xps4jz97b
This commit is contained in:
parent
b0fa6143d2
commit
101e933d28
|
@ -151,6 +151,7 @@ class wkf_transition(osv.osv):
|
|||
'condition': fields.char('Condition', required=True, size=128),
|
||||
'act_from': fields.many2one('workflow.activity', 'Source Activity', required=True, select=True, ondelete='cascade'),
|
||||
'act_to': fields.many2one('workflow.activity', 'Destination Activity', required=True, select=True, ondelete='cascade'),
|
||||
'workflow_id': fields.related('act_from', 'wkf_id', type='many2one', relation='workflow', string='Workflow'),
|
||||
}
|
||||
_defaults = {
|
||||
'condition': lambda *a: 'True',
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
<field name="kind"/>
|
||||
</node>
|
||||
<arrow object="workflow.transition" source="act_from" destination="act_to" signal="signal">
|
||||
<field name="act_from"/>
|
||||
<field name="act_to"/>
|
||||
<field name="act_from" domain="[('wkf_id','=', workflow_id)]"/>
|
||||
<field name="act_to" domain="[('wkf_id','=', workflow_id)]"/>
|
||||
<field name="signal"/>
|
||||
</arrow>
|
||||
</diagram>
|
||||
|
|
Loading…
Reference in New Issue