kernel: add commit when workitem state is complete

bzr revid: ced-ea97ab4a5d6d0fdc1bb7682453ebd7877ac75f9a
This commit is contained in:
ced 2007-07-26 08:31:41 +00:00
parent 8a1e4d95f7
commit f0b3162c59
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ def _state_set(cr, workitem, activity, state, ident):
cr.execute('update wkf_workitem set state=%s where id=%d', (state,workitem['id']))
workitem['state'] = state
wkf_logs.log(cr,ident,activity['id'],state)
if state == 'complete':
cr.commit()
def _execute(cr, workitem, activity, ident):
#