diff --git a/addons/document_change/document_change.py b/addons/document_change/document_change.py
index f86ae49bfe1..f964725ce58 100644
--- a/addons/document_change/document_change.py
+++ b/addons/document_change/document_change.py
@@ -96,6 +96,11 @@ class doucment_change_process_phase(osv.osv):
def do_done(self, cr, uid, ids, *args):
self.write(cr, uid, ids, {'state':'done'})
return True
+ def test_control_request(self, cr, uid, ids, context=None):
+ return all(bool(process.type) =='control_required' for process in self.browse(cr, uid, ids, context=context))
+
+ def test_nocontrol_request(self, cr, uid, ids, context=None):
+ return all(bool(process.type) =='no_control' for process in self.browse(cr, uid, ids, context=context))
doucment_change_process_phase()
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 @@
button_start
-
+
+ test_control_request()
button_confirm
+
+
+
+ test_nocontrol_request()
+ button_confirm
+
+