error when printing subworkflow of purchase order

Bug #701058 reported by nel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP's Framework R&D

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()

Related branches

affects: openobject-addons → openobject-server
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-server:
status: Confirmed → In Progress
Revision history for this message
Yogesh (SerpentCS) (yogesh-serpentcs) wrote :

Hello,

It has been fixed into https://code.launchpad.net/~openerp-dev/openobject-server/ysa-server-framework branch by:
Revision ID: ysa-openerp@ysa-openerp-20110112092040-me0cv8lhhk7lk8hs
Revno: 3214

Thanks.

Changed in openobject-server:
status: In Progress → Fix Released
Revision history for this message
Yogesh (SerpentCS) (yogesh-serpentcs) wrote :

Hello,

This bug also fixed into https://code.launchpad.net/~openerp-dev/openobject-server/ysa-workflow branch by:
Revision ID: ysa-openerp@ysa-openerp-20110112085442-cqt90cpii138q5jy
Revision No:- 3248

Soon, it'll be merged into server branch.

Thanks,

Changed in openobject-server:
milestone: none → 6.0
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The fix was merged in trunk server with revision 3285 <email address hidden>

Thanks for taking the time to report this!

Revision history for this message
Chua Wen Ching (chuawenching) wrote :

I still got the same problem. I just downloaded the latest 6.0.2 but I am not sure what files were changed to make this work.

I use winmerge to compare between the print_instance.py on both current copy and new copy. It is identical.

can you tell me what was changed to make this work? like which files, so i can do a comparison and apply to my current openerp v6 (which i installed via all-in-one bundle on windows).

Any help? Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.