summaryrefslogtreecommitdiff
path: root/addons/document_change/document_phase_workflow.xml
diff options
context:
space:
mode:
authorsbh (Open ERP) <sbh@tinyerp.com>2010-01-25 16:55:26 +0530
committersbh (Open ERP) <sbh@tinyerp.com>2010-01-25 16:55:26 +0530
commitbbeb226478e6afb8eaa9ca115434095fe4887b39 (patch)
tree3c132df2dbe744d434014776f17e957ac20b606f /addons/document_change/document_phase_workflow.xml
parent53cfdc65205bc621c121661d6400cec91ebb6044 (diff)
document_change: modify the workflow check add the role based on type
bzr revid: sbh@tinyerp.com-20100125112526-e3aq6mc3lhpkbq33
Diffstat (limited to 'addons/document_change/document_phase_workflow.xml')
-rw-r--r--addons/document_change/document_phase_workflow.xml10
1 files changed, 9 insertions, 1 deletions
diff --git a/addons/document_change/document_phase_workflow.xml b/addons/document_change/document_phase_workflow.xml
index 02f2cc1679b..ea59fc2abe4 100644
--- a/addons/document_change/document_phase_workflow.xml
+++ b/addons/document_change/document_phase_workflow.xml
@@ -38,12 +38,20 @@
<field name="act_to" ref="act_phase_start"/>
<field name="signal">button_start</field>
</record>
- <record id="tran_phase_start_to_confirm" model="workflow.transition">
+ <record id="tran_phase_start_to_confirm_control" model="workflow.transition">
<field name="act_from" ref="act_phase_start"/>
<field name="act_to" ref="act_phase_confirm"/>
<field name="role_id" ref="role_NPPI" />
+ <field name="condition">test_control_request()</field>
<field name="signal">button_confirm</field>
</record>
+ <record id="tran_phase_start_to_confirm_not_control" model="workflow.transition">
+ <field name="act_from" ref="act_phase_start"/>
+ <field name="act_to" ref="act_phase_confirm"/>
+ <field name="condition">test_nocontrol_request()</field>
+ <field name="signal">button_confirm</field>
+ </record>
+
<record id="tran_phase_confirm_to_end" model="workflow.transition">
<field name="act_from" ref="act_phase_confirm"/>
<field name="act_to" ref="act_phase_end"/>