← Back to team overview

openerp-india team mailing list archive

[Bug 1049515] [NEW] Bug in return picking wizard (key error)

 

Public bug reported:

Scenario:

1. Make a picking with several lines.

2. Make a partial return picking, in which only a line of the previous
picking is returned (the same qty).

3. Make another return picking, linked also to the initial picking. When
confirming the wizard quantities, it raises an exception.

The problem resides in the method create_returns of the wizard. It's
designed to process a key/value pair for each and every picking line,
but the view_init method creates only a field for each line of the
pickint THAT REALLY can be returned, after checking the historic
movements.

In other words, you'll see that the line that corresponds to the product
returned in the first return picking is not present in the wizard of the
second return picking. The create_returns method will search for it
anyway, and OpenERP will complain about a non-existing key.

A fix proposal is attached.

** Affects: openobject-addons
     Importance: Undecided
         Status: New


** Tags: key picking return stock wizard

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

Title:
  Bug in return picking wizard (key error)

Status in OpenERP Addons (modules):
  New

Bug description:
  Scenario:

  1. Make a picking with several lines.

  2. Make a partial return picking, in which only a line of the previous
  picking is returned (the same qty).

  3. Make another return picking, linked also to the initial picking.
  When confirming the wizard quantities, it raises an exception.

  The problem resides in the method create_returns of the wizard. It's
  designed to process a key/value pair for each and every picking line,
  but the view_init method creates only a field for each line of the
  pickint THAT REALLY can be returned, after checking the historic
  movements.

  In other words, you'll see that the line that corresponds to the
  product returned in the first return picking is not present in the
  wizard of the second return picking. The create_returns method will
  search for it anyway, and OpenERP will complain about a non-existing
  key.

  A fix proposal is attached.

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


Follow ups

References