← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 812322] Re: stock workflow - duplicated transitions

 

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)

-- 
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/812322

Title:
  stock workflow - duplicated transitions

Status in OpenERP Modules (addons):
  Confirmed

Bug description:
  The workflow for stock.picking (addons/stock/stock_workflow.xml)
  contains the following duplicated transitions in the xml file:

          <record id="trans_assigned_cancel_auto" model="workflow.transition">
              <field name="act_from" ref="act_assigned"/>
              <field name="act_to" ref="act_cancel"/>
              <field name="condition">test_cancel()</field>
          </record>
          <record id="trans_confirmed_cancel_auto" model="workflow.transition">
              <field name="act_from" ref="act_confirmed"/>
              <field name="act_to" ref="act_cancel"/>
              <field name="condition">test_cancel()</field>
          </record>

  It also has two different transitions with the same id:
          <record id="trans_draft_cancel" model="workflow.transition">
              <field name="act_from" ref="act_draft"/>
              <field name="act_to" ref="act_cancel"/>
              <field name="signal">button_cancel</field>
          </record>

  and:
          <record id="trans_draft_cancel" model="workflow.transition">
              <field name="act_from" ref="act_draft"/>
              <field name="act_to" ref="act_cancel_inv"/>
              <field name="signal">button_cancel</field>
          </record>

  With the only difference is that one uses a different cancel node.

  Probably one instance of the records with id
  trans_assigned_cancel_auto and trans_confirmed_cancel_auto should be
  removed.

  One of the trans_draft_cancel should be removed too. If the one
  removed is the one that goes to act_cancel_inv, the activity
  act_cancel_inv should be removed too as it is no longer used.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/812322/+subscriptions


References