Skip to content
Snippets Groups Projects
Commit df2bd1f7 authored by roen-odoo's avatar roen-odoo
Browse files

[FIX] point_of_sale: Correctly compute refund cogs value


Current behavior:
When making a refund of an order in the PoS, the cost of good was
computed as if the refund was a classic order.

Steps to reproduce:
- Make sure you are in anglo-saxon accounting
- Create a category that use AVCO and automated valuation
- Create a product with a cost of 10€ that is part of the new category
- Create a PoS order with the product
- Refund the order
- Close the session, and check the accounting entries, the cost of good
  sold is 20€ instead of 0€

Note: this fix needs you to set the return picking type in the Operation
type of the PoS

opw-3149324

closes odoo/odoo#111252

Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent d99ac29d
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment