Wrong return pick type

Bug #588657 reported by Grzegorz Grzelak (OpenGLOBE.pl)
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
JMA(Open ERP)

Bug Description

When you make return of pick of type "delivery" you get return pick of type "internal". IMHO it should be "in".
I suggest to change the code in stock module in wizard_return.py.
in line 73:
From:

        if not new_picking:
            if pick.type=='out':
                new_type='in'
            elif pick.type=='in':
                new_type='out'
            else:
                new_type='internal'

To:
        if not new_picking:
            if pick.type in ['out','delivery']:
                new_type='in'
            elif pick.type=='in':
                new_type='out'
            else:
                new_type='internal'

Related branches

Changed in openobject-addons:
assignee: nobody → JMA(Open ERP) (jma-openerp)
importance: Undecided → Low
milestone: none → 5.0.13
status: New → Confirmed
Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Grzegorz Grzelak,

This has been fixed by following revision:
2793 <email address hidden>

Thank you for pointing this out.

Changed in openobject-addons:
status: Confirmed → Fix Released
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.