~openerp-dev/openobject-server/saas-4-forum-crawl-xmo

« back to all changes in this revision

Viewing changes to openerp/workflow/instance.py

  • Committer: Denis Ledoux
  • Date: 2014-04-24 13:55:07 UTC
  • Revision ID: dle@openerp.com-20140424135507-5130yyy5brpfqd5f
[FIX] http: set back the gen_session_id controller, because still used by openframework.js of web branch

Related to revision 5124 revid:al@openerp.com-20140316141311-m0xqh386ax952va1

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        assert isinstance(workflow_id, (int, long))
44
44
 
45
45
        cr = session.cr
46
 
        cr.execute('insert into wkf_instance (res_type,res_id,uid,wkf_id,state) values (%s,%s,%s,%s,%s) RETURNING id', (record.model, record.id, session.uid, workflow_id, 'active'))
 
46
        cr.execute('insert into wkf_instance (res_type,res_id,uid,wkf_id) values (%s,%s,%s,%s) RETURNING id', (record.model, record.id, session.uid, workflow_id))
47
47
        instance_id = cr.fetchone()[0]
48
48
 
49
49
        cr.execute('select * from wkf_activity where flow_start=True and wkf_id=%s', (workflow_id,))