Diagram view: bug if "source" and "destination" are inverted

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

Bug Description

Hi!

When trying to create a diagram view for one of my own objects, I always got a strange error, the same that the one I reported in https://bugs.launchpad.net/openobject-server/+bug/932830 . However, the latter bug is for diagrams with cyclic transitions, and this bug arose even when there was NO cycle in my transitions. I finally just inverted "source" and "destination" in the arrow element in the view, and now it works OK (but the arrows are not in the correct direction).

Of course, this bug should not arise when the direction of the arrow is inverted, since the definition is symmetric.

You can easily check this bug by inverting the "source" and "destination" fields in "workflow_view.xml":

          <arrow object="workflow.transition" destination="act_from" source="act_to" label="['signal','condition']">
            <field name="act_from"/>
            <field name="act_to"/>
            <field name="signal"/>
          </arrow>

Cheers!

Related branches

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
Jigar A. (ifixthat)
Changed in openobject-server:
status: Confirmed → In Progress
Revision history for this message
Jigar A. (ifixthat) wrote :

Hello Francois,
      It is really good issue the you point. The Steps you mention in bug description are the one way to reproduce the bug, It can be also produce other way bu having disconnected diagram and then try to add the looped edges on them I have attached the screen-cast for the same here by with bug attachments.
     We have traced the issue and have fixed the issue in branch : lp:~openerp-dev/openobject-server/trunk-bug-948158-jam at revision no#4152 and also have proposed solution for merging in trunk server branch.
Thank you for you kind support.

Revision history for this message
Jigar A. (ifixthat) wrote :
Changed in openobject-server:
status: In Progress → Fix Committed
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.