← 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/6.1
   Importance: Undecided
       Status: New

** Also affects: ocb-addons/7.0
   Importance: Low
     Assignee: Yann Papouin (yann-papouin)
       Status: Fix Committed

** Changed in: ocb-addons/7.0
       Status: Fix Committed => New

** Changed in: ocb-addons/6.1
       Status: New => Fix Committed

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

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

-- 
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 Community Backports (Addons) 6.1 series:
  Fix Committed
Status in OpenERP Community Backports (Addons) 7.0 series:
  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