2bda112eedecf0d5ac730f5214cd0444125913d5
Usecase to reproduce: - Set stock valuation as perpetual - Create a PO with a different currency than the company - Validate the receipt on create the invoice - Set a discount on the invoice and validate it The amount currency is not set on the account.move.line created by the valuation layer. It could prevent the reconciliation to succeed since it would be base on invoice currency. It happens because the amount currency is created from the difference between layer price converted to invoice currency and the invoice line `price_unit`. However `price_unit` is missing the discount. So this pr add extra computation to get the gross price unit discount applied. closes odoo/odoo#107256 X-original-commit: 493020b9317a439c0a61a34f37cc92b6779ef633 Signed-off-by: William Henrotin (whe) <whe@odoo.com> Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%