← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 798292] Re: Return stock moves with parents is impossible

 

Hi Vinay,

Yes, because this wizard set the return move like parent of origin move,
but it must be child of origin move, or not? Then int all file you must
use move_history_ids instead of move_history_ids2.

Imagine that your origin move have parents, who aren't returns, this
wizard checks all parents moves then the sum of parents quantity doesn't
represent the consumes or returns quantity, this quantity is represented
by children moves.

Test it, thanks

** Changed in: openobject-addons
       Status: Incomplete => Opinion

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/798292

Title:
  Return stock moves with parents is impossible

Status in OpenERP Modules (addons):
  Opinion

Bug description:
  Hi,

  If you have a move with parents moves inside any picking and you try return it, it fails, with this exception: "There are no products to return (only lines in Done state and not fully returned yet can be returned)!" 
  In the source, it checks if the quantity of move to return is less or equal than sum of quantities of his parents (move_history_ids2), that to know if this move was returned yet, but it's wrong, it must check his child moves (move_history_ids) where returns will be registered.

  Regards.

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


References