← Back to team overview

openerp-india team mailing list archive

[Bug 1137541] Re: [6.1][7.0][trunk][stock] Move destination and partial picking

 

** Also affects: ocb-addons
   Importance: Undecided
       Status: New

** Changed in: ocb-addons
     Assignee: (unassigned) => Yann Papouin (yann-papouin)

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

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

Title:
  [6.1][7.0][trunk][stock] Move destination and partial picking

Status in OpenERP Community Backports (Addons):
  New
Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  When doing a partial picking, if the quantity received/sent is lesser
  than the expected one, then a new move with the set quantity is
  created and the move is set to done by workflow.

  The corresponding code is:

  if product_qty != 0:
      defaults = {
              'product_qty' : product_qty,
              'product_uos_qty': product_qty, #TODO: put correct uos_qty
              'picking_id' : new_picking,
              'state': 'assigned',
              'move_dest_id': false,
              'price_unit': move.price_unit,
              'product_uom': product_uoms[move.id]
      }

  I think that the "move_dest_id" value should be kept from the original
  move for easier traceability.

  if product_qty != 0:
      defaults = {
              'product_qty' : product_qty,
              'product_uos_qty': product_qty, #TODO: put correct uos_qty
              'picking_id' : new_picking,
              'state': 'assigned',
              'move_dest_id': move.move_dest_id.id,
              'price_unit': move.price_unit,
              'product_uom': product_uoms[move.id]
      }

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