Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoice before Delivery Leads to COGS/inventory valuation discrepancies #165566

Open
derekwolfson opened this issue May 15, 2024 · 0 comments
Open
Labels
17.0 Logistics about stock, mrp, delivery, purchase

Comments

@derekwolfson
Copy link

Impacted versions: 17.0

Steps to reproduce:
Create Inventory of an Item -- set price at $10 and increase stock by 1 -- set price at $5 increase stock by 1 -- so now have two stock -- one at $10 and one at $5

Set FIFO inventory valuation

Create SO for 2x units of stock and then create invoice/validate invoice BEFORE validating the delivery

This will make COGS entries of $20 since price of next unit is $10 -- this is fine because how is Odoo supposed to know actual COGS without a stock movement?

Now Validate the delivery and check COGS again -- it is still $20 as the journal entries did not update.

Now set Invoice to draft and repost it. COGS is now $15 since the delivery is logged properly.

Current behavior:
COGS is wrong if you don't set to draft and repost invoice after delivery.

Expected behavior:
Automatic update of COGS upon validation of a delivery.

I understand the logic behind the workflow here -- but there really needs to be something that "corrects" Odoo's best guess at COGS once a delivery/inventory movement is done. That is the true "cost of goods sold".

We can obviously set the invoice control rule to "delivered quantities" and use down payments to get prepayments -- but this doesn't work in e-Commerce as those sales go straight to fully invoiced/paid even though the delivery is still pending.

Video/Screenshot link (optional):

Support ticket number submitted via odoo.com/help (optional):

@vava-odoo vava-odoo added Logistics about stock, mrp, delivery, purchase 17.0 labels May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17.0 Logistics about stock, mrp, delivery, purchase
Projects
None yet
Development

No branches or pull requests

2 participants