← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 701058] [NEW] error when printing subworkflow of purchase order

 

Public bug reported:

Create a purchase order then try to print the subworkflow:

[2011-01-10 16:09:24,083][s5] ERROR:workflow:[01]: Exception in call: Traceback (most recent call last):
[2011-01-10 16:09:24,083][s5] ERROR:workflow:[02]:   File "/home/nel/openerp/trunk_server/bin/addons/base/ir/workflow/print_instance.py", line 154, in __init__
[2011-01-10 16:09:24,083][s5] ERROR:workflow:[03]:     graph_instance_get(cr, graph, inst_id, data.get('nested', False))
[2011-01-10 16:09:24,083][s5] ERROR:workflow:[04]:   File "/home/nel/openerp/trunk_server/bin/addons/base/ir/workflow/print_instance.py", line 107, in graph_instance_get
[2011-01-10 16:09:24,083][s5] ERROR:workflow:[05]:     graph_get(cr, graph, [x[0] for x in inst], nested, workitem_get(inst_id))
[2011-01-10 16:09:24,083][s5] ERROR:workflow:[06]:   File "/home/nel/openerp/trunk_server/bin/addons/base/ir/workflow/print_instance.py", line 41, in graph_get
[2011-01-10 16:09:24,083][s5] ERROR:workflow:[07]:     (s1,s2) = graph_get(cr, graph2, n['subflow_id'], nested,workitem)
[2011-01-10 16:09:24,084][s5] ERROR:workflow:[08]:   File "/home/nel/openerp/trunk_server/bin/addons/base/ir/workflow/print_instance.py", line 30, in graph_get
[2011-01-10 16:09:24,084][s5] ERROR:workflow:[09]:     cr.execute('select * from wkf_activity where wkf_id in ('+','.join(['%s']*len(wkf_ids))+')', wkf_ids)
[2011-01-10 16:09:24,084][s5] ERROR:workflow:[10]: TypeError: object of type 'int' has no len()

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/701058

Title:
  error when printing subworkflow of purchase order

Status in OpenObject Addons Modules:
  New

Bug description:
  Create a purchase order then try to print the subworkflow:

[2011-01-10 16:09:24,083][s5] ERROR:workflow:[01]: Exception in call: Traceback (most recent call last):
[2011-01-10 16:09:24,083][s5] ERROR:workflow:[02]:   File "/home/nel/openerp/trunk_server/bin/addons/base/ir/workflow/print_instance.py", line 154, in __init__
[2011-01-10 16:09:24,083][s5] ERROR:workflow:[03]:     graph_instance_get(cr, graph, inst_id, data.get('nested', False))
[2011-01-10 16:09:24,083][s5] ERROR:workflow:[04]:   File "/home/nel/openerp/trunk_server/bin/addons/base/ir/workflow/print_instance.py", line 107, in graph_instance_get
[2011-01-10 16:09:24,083][s5] ERROR:workflow:[05]:     graph_get(cr, graph, [x[0] for x in inst], nested, workitem_get(inst_id))
[2011-01-10 16:09:24,083][s5] ERROR:workflow:[06]:   File "/home/nel/openerp/trunk_server/bin/addons/base/ir/workflow/print_instance.py", line 41, in graph_get
[2011-01-10 16:09:24,083][s5] ERROR:workflow:[07]:     (s1,s2) = graph_get(cr, graph2, n['subflow_id'], nested,workitem)
[2011-01-10 16:09:24,084][s5] ERROR:workflow:[08]:   File "/home/nel/openerp/trunk_server/bin/addons/base/ir/workflow/print_instance.py", line 30, in graph_get
[2011-01-10 16:09:24,084][s5] ERROR:workflow:[09]:     cr.execute('select * from wkf_activity where wkf_id in ('+','.join(['%s']*len(wkf_ids))+')', wkf_ids)
[2011-01-10 16:09:24,084][s5] ERROR:workflow:[10]: TypeError: object of type 'int' has no len()





Follow ups

References