← Back to team overview

openerp-india team mailing list archive

[Bug 928233] [NEW] Upstream Traceability button on production lot opens Downstream Traceability window

 

Public bug reported:

Clicking the button "Upstream Traceability" on a production lot under
Warehouse / Traceability / Production Lots opens a window titled
"Downstream Traceability" with an incorrect field_parent.

Steps to reproduce:

* trunk server and addons with module stock installed
* under Warehouse / Traceability / Production Lots create a new production lot
* Click button Upstream Traceability

Works in 6.0, change that causes problem is in
stock/wizard/stock_traceability.py, where

        type1 = context['type'] or 'move_history_ids2'

is changed to

        type1 = context.get('type', 'move_history_ids2')

However stock/stock_view.xml sets type in the context of the upstream
traceability button to ''.

Because the variable type1 is also used as field_parent, the data shown
is also incorrect.

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

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/928233

Title:
  Upstream Traceability button on production lot opens Downstream
  Traceability window

Status in OpenERP Addons (modules):
  New

Bug description:
  Clicking the button "Upstream Traceability" on a production lot under
  Warehouse / Traceability / Production Lots opens a window titled
  "Downstream Traceability" with an incorrect field_parent.

  Steps to reproduce:

  * trunk server and addons with module stock installed
  * under Warehouse / Traceability / Production Lots create a new production lot
  * Click button Upstream Traceability

  Works in 6.0, change that causes problem is in
  stock/wizard/stock_traceability.py, where

          type1 = context['type'] or 'move_history_ids2'

  is changed to

          type1 = context.get('type', 'move_history_ids2')

  However stock/stock_view.xml sets type in the context of the upstream
  traceability button to ''.

  Because the variable type1 is also used as field_parent, the data
  shown is also incorrect.

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


Follow ups

References