Canceled Move should not go for Invoice creation.
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) | Status tracked in Trunk | |||||
5.0 |
Fix Released
|
Medium
|
Unassigned | |||
Trunk |
Fix Released
|
Medium
|
Unassigned |
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.
Changed in openobject-addons: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → 5.0.15 |
Changed in openobject-addons: | |
assignee: | nobody → DHS(OpenERP) (dhs-openerp) |
Hi Jan,Raphael,
Thanks for pointing this note.
Is that right to not allow only 'cancel' state?
Should not we follow the concept that 'draft'/'cancel' move should not be allowed for invoice creation?
May be a better approach stays as only 'done' moves are qualified for invoice lines.
Share your views.
Thanks.