Pass context to workflow

This commit is contained in:
Cédric Krier
2008-10-27 16:42:22 +01:00
parent fb750cd263
commit d4f4bb7847
+2 -1
View File
@@ -130,7 +130,8 @@ class Statement(OSV):
def draft_workflow(self, cursor, user, ids, context=None):
workflow_service = LocalService('workflow')
for statement in self.browse(cursor, user, ids, context=context):
workflow_service.trg_create(user, self._name, statement.id, cursor)
workflow_service.trg_create(user, self._name, statement.id, cursor,
context=context)
self.write(cursor, user, statement.id, {
'state': 'draft',
}, context=context)