Partially transfer product in Internal Move - no number assigned in Back Order

Bug #1200619 reported by Kitti Upariphutthiphong
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP R&D Addons Team 2

Bug Description

(Build 15558)
server (5027)
addons (9295)
web (3995)

Internal Move do not behave in the same way as Delivery Order / Incoming Shipment,

Steps:
1. Create new Internal Move, with product move 100 units.
2. Transfer 40, new Internal Move created as back order correctly but no number assigned.

The problem is that, the sequence number for stock.picking.internal is not found (it should be stock.picking)

Solution at stock/stock.py

1) stock_picking.copy()

    def copy(self, cr, uid, id, default=None, context=None):
        if default is None:
            default = {}
        default = default.copy()
        picking_obj = self.browse(cr, uid, id, context=context)
        move_obj=self.pool.get('stock.move')
        if ('name' not in default) or (picking_obj.name=='/'):
            # kittiu: if type = internal, number was not created.
            #seq_obj_name = 'stock.picking.' + picking_obj.type
            seq_obj_name = 'stock.picking' + (picking_obj.type != 'internal' and '.'+picking_obj.type or '')
            # --

2) stock_picking.do_partial()

            for move in too_few:
                .....
                product_qty = move_product_qty[move.id]
                ....
                    self.write(cr, uid, [pick.id],
                               {'name': sequence_obj.get(cr, uid,
                                            # kittiu for type internal, number not created
                                            #'stock.picking.%s'%(pick.type)),
                                            'stock.picking%s'%(pick.type != 'internal' and '.'+pick.type or '')),
                                            # --
                                })

Many thanks,
Kitti U.

Related branches

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Jitendra Prajapati(OpenERP) (jitendra.prajapati-openerp) wrote :

Hello,

  It has been Fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1200619-jpr

  revision-id: <email address hidden>

  revno: 9025

It will be available in trunk soon.

Thanks

Changed in openobject-addons:
status: Confirmed → In Progress
status: In Progress → Fix Committed
Revision history for this message
Oliver Yuan (oliver-yuan) wrote :

When it could be merged into trunk?

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.