# HG changeset patch # Parent 0764cf061d021a0a5b2811f5ec5d835f799630fc Index: addons/openacademy/views/session_workflow.xml =================================================================== --- addons.orig/openacademy/views/session_workflow.xml 2014-08-26 17:26:17.339783114 +0200 +++ addons/openacademy/views/session_workflow.xml 2014-08-26 17:26:17.331783114 +0200 @@ -6,24 +6,53 @@ True + + Set session to Draft + + +recs = self.browse(cr, uid, context['active_ids'], context=context) +recs.action_draft() + + Draft - function - action_draft() + dummy + + + + + + Set session to Confirmed + + +recs = self.browse(cr, uid, context['active_ids'], context=context) +recs.action_confirm() + Confirmed - function - action_confirm() + dummy + + + + + + Set session to Done + + +recs = self.browse(cr, uid, context['active_ids'], context=context) +recs.action_done() + Done - function - action_done() + dummy + +