← Back to team overview

openerp-expert-production team mailing list archive

[Bug 638385] Re: 5.0 Regression - Canceled pickingline in picking does create a invoiceline (Patch incl)

 

IMHO a cancelled picking line has to be treated by all (following)
actions as  if it does not exist.

the other alternative would be to delete the line - which of course is
not desired, because the "workflow" generation and cancellation  of the
line should be documented for further investigation.

invoice should of course take the picking qty (and price if different from  order - which is quite common for some business and/or products where daily spot prices are used regardless which price was available at order date.  ) 
(see https://code.launchpad.net/~openerp-commiter/openobject-addons/chricar_price_unit)

-- 
5.0 Regression - Canceled pickingline in picking does create a invoiceline (Patch incl)
https://bugs.launchpad.net/bugs/638385
You received this bug notification because you are a member of OpenERP
Manufacturing Experts, which is a direct subscriber.

Status in OpenObject Addons Modules: Confirmed

Bug description:
Patch included

SITUATION IDENTIFIED IN:
Created Invoice from packing

REPRODUCTION ENVIRONMENT:
Stable version 5.0.16 via bazaar updated today via bazaar.
revision 2849
date: 2010-09-014
branch-nick: addons

PROBLEM DESCRIPTION:
Invoice is created with a invoice line containing canceled pickinglines

SPECIFIC PARAMETER SETUP:
Purchase order type is "Invoice from picking"
Demo data setup

STEPS TO BE FOLLOWED:
Create a purchase order with 1 orderline  with 1 pcs BasicPC and a second orderline with 1 pcs MediumPC
Check the parameter that the invoice is created "From picking"
Confirm and Approve the purchaseorder.

Go to Packing and see that a packing is created with 2 picking lines.
Click on first picking line to go into detail screen and "Cancel" this specific picking line. Exit this detail screen.
Now first line is canceled and the second one is open.
Receive the product by check availability and confirm. See that only the second line asked for quantity which is correct.

Create invoice

OBSERVED RESULT:
The invoice contains both productlines with ordered products, not the delivered products.

EXPECTED RESULT:
An invoice with only the delivered products

ADDITIONAL COMMENTS:
This functionality is changed between 5.04 and 5.014.
Previously for the cancelled picking line a backorder was created in status cancelled. 
Therefore the cancelled line disappeared from the picking where the invoice was created from. This is not the case anymore and no check is done on cancelled picking lines.

I like the current functionality as it cleans up the packing orders but the invoice should be created right.