(a workflow variable gives now access to trg_* methods of the workflow engine)
bzr revid: rim@openerp.com-
20140221115347-rpar6uyiwx1z9deu
# - uid: current user id
# - context: current context
# - time: Python time module
+# - workflow: Workflow engine
# If you plan to return an action, assign: action = {...}""",
'use_relational_model': 'base',
'use_create': 'new',
'uid': uid,
'user': user,
'context': context,
+ 'workflow': workflow
}
def run(self, cr, uid, ids, context=None):
<li>cr: database cursor</li>
<li>uid: current user id</li>
<li>context: current context</li>
+ <li>workflow: Workflow engine</li>
</ul>
<div>
<p>Example of condition expression using Python</p>