Upstream Traceability button on production lot opens Downstream Traceability window

Bug #928233 reported by Simon
36
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Low
OpenERP R&D Addons Team 2

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.

Related branches

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

I agree with simon the Upstream Traceability displayed with Downstream Traceability string but displayed values are proper.

Please see the attached screen-shots.

Thank you!

Revision history for this message
Amit Parik (amit-parik) wrote :
Revision history for this message
Amit Parik (amit-parik) wrote :
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Mayur Maheshwari(OpenERP) (mma-openerp) wrote :

Hello simon,

Thanks for Reporting.
It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-928233-mma With
Revision ID: <email address hidden>
Revision num: 6567.

It will be available in trunk soon.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Joël Grand-Guillaume @ camptocamp (jgrandguillaume-c2c) wrote :

Hi,

This bug is still present in last version 6.1 !! Could you please merge that branch :lp:~openerp-dev/openobject-addons/trunk-bug-928233-mma

It fixes the problem. And please pay attention to not a bug as fix committed when it is ;) !

Regards,

Joël

Changed in openobject-addons:
status: Fix Committed → Confirmed
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

I just added a merge proposal for 6.1 branch fixing this issue

Revision history for this message
Colin Bacon (ym8-colin) wrote :

Has this been fixed yet - as I'm still getting the problem in the latest 6.1 version?

Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote : Re: [Bug 928233] Re: Upstream Traceability button on production lot opens Downstream Traceability window

On dim. 03 mars 2013 09:05:46 CET, Colin Bacon wrote:
> Has this been fixed yet - as I'm still getting the problem in the latest
> 6.1 version?
>

There is a fix, but it has not been merged in the 6.1 branch.

--
Alexandre Fayolle
Chef de Projet
Tel : + 33 (0)4 79 26 57 94

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
http://www.camptocamp.com

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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