diff options
| author | Mantavya Gajjar <mga@tinyerp.com> | 2009-11-26 17:06:53 +0530 |
|---|---|---|
| committer | Mantavya Gajjar <mga@tinyerp.com> | 2009-11-26 17:06:53 +0530 |
| commit | bbe48761e4d9c6d9844bae92dac61afc7ec0ce99 (patch) | |
| tree | 180fa5b70de5c2c518e0ecf0079c02c643e6e109 /bin/workflow | |
| parent | d365fbeb13fe41e30535d0bdbbdbca969ca818f2 (diff) | |
| parent | b7f7fdefaf58ef3e183a450b68a8796ca2bdaf24 (diff) | |
[MERGE]: merging from the same branch
bzr revid: mga@tinyerp.com-20091126113653-0ym60nvtjinvp82h
Diffstat (limited to 'bin/workflow')
| -rw-r--r-- | bin/workflow/instance.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/workflow/instance.py b/bin/workflow/instance.py index 204b0f93240..e1407fd1455 100644 --- a/bin/workflow/instance.py +++ b/bin/workflow/instance.py @@ -27,9 +27,8 @@ import pooler def create(cr, ident, wkf_id): (uid,res_type,res_id) = ident - cr.execute("select nextval('wkf_instance_id_seq')") + cr.execute('insert into wkf_instance (res_type,res_id,uid,wkf_id) values (%s,%s,%s,%s) RETURNING id', (res_type,res_id,uid,wkf_id)) id_new = cr.fetchone()[0] - cr.execute('insert into wkf_instance (id,res_type,res_id,uid,wkf_id) values (%s,%s,%s,%s,%s)', (id_new,res_type,res_id,uid,wkf_id)) cr.execute('select * from wkf_activity where flow_start=True and wkf_id=%s', (wkf_id,)) res = cr.dictfetchall() stack = [] |
