It is currently Sat Feb 11, 2012 12:17 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Possible BUG in workflow duplication?
PostPosted: Wed Sep 02, 2009 12:34 pm 
Offline

Joined: Mon Aug 31, 2009 12:10 pm
Posts: 4
Hi everyone,
I need to implement a modified version of the sale workflow, but instead of modifying directly the "sale.order.basic" workflow I want to create a new one by duplication.

Duplication works fino for the workflow object, for activities and transitions, but when I try to edit the new workflow in the visual diagram editor the page stops with a red message: Loading...
I tried to wait long but nothing. So I opened the server log and found this error:
[2009-09-02 11:52:16,993] ERROR:web-services:[01]: Traceback (most recent call last):
[2009-09-02 11:52:16,993] ERROR:web-services:[02]: File "osv\osv.pyo", line 59, in wrapper
[2009-09-02 11:52:16,993] ERROR:web-services:[03]: File "osv\osv.pyo", line 119, in execute
[2009-09-02 11:52:16,993] ERROR:web-services:[04]: File "osv\osv.pyo", line 111, in execute_cr
[2009-09-02 11:52:16,993] ERROR:web-services:[05]: File "C:\Programmi\OpenERP AllInOne\Server\addons\base\ir\workflow\workflow.py", line 77, in graph_get
[2009-09-02 11:52:16,993] ERROR:web-services:[06]: File "tools\graph.pyo", line 704, in process
[2009-09-02 11:52:16,993] ERROR:web-services:[07]: File "tools\graph.pyo", line 666, in order_in_rank
[2009-09-02 11:52:16,993] ERROR:web-services:[08]: File "tools\graph.pyo", line 537, in process_order
[2009-09-02 11:52:16,993] ERROR:web-services:[09]: IndexError: list index out of range

It could be becouse the duplication doesn't create a graph for the new workflow.

Anyone can help?
If this is a bug, how can i report it and where?

Leonardo


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 05, 2009 2:00 pm 
Offline

Joined: Wed Aug 12, 2009 9:05 am
Posts: 40
Hi,

when we duplicate complete workflow, duplication of records is successful in the database, where as the reference between the activities and transitions is not correct in the transition table. If their is no proper link, visual diagram editor cannot generate the diagram.
Duplication for workflow transitions will result in error, my suggestion would be to create new one by referring the existing.

_________________
Regards,
Murali S


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP