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

[16.0] purchase_triple_discount: missing function #2374

Open
greciosd opened this issue Jul 25, 2024 · 0 comments
Open

[16.0] purchase_triple_discount: missing function #2374

greciosd opened this issue Jul 25, 2024 · 0 comments
Labels

Comments

@greciosd
Copy link

Hello.

I have noticed that when migrating the "purchase_triple_discount" module to version 16, the "_get_discounted_price_unit" function has been removed from "models/purchase_order.py". This implies that when the delivery note is created, the "price_unit" field of the "stock.move" model does not have the correct calculation, since it only takes into account the first discount, and not discounts 2 and 3. One of the consequences is that if the "purchase_landed_cost" module is installed, when importing a delivery note into a purchase landed cost distribution, the unit price is wrong, since it is retrieved from the "price_unit" field of "stock.move".

Is there any specific reason to have removed the "_get_discounted_price_unit" function from "purchase_triple_discount" module?

Thanks in advance.

@greciosd greciosd added the bug label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant