88f53b7315fe8699f7128800725fa4ad494a5abc
Steps to reproduce: - Using a company whose currency is USD, make sure to have a rate change with EUR a week before Today. - Create an analytic plan with Default Applicability set to Mandatory. - Create an analytic account for the plan. - Create a Storable Product with a Product Category that has FIFO Costing Method and Automated Inventory Valuation. - Create a Request for Quotation in EUR using the new product and the new analytic account. - Confirm it, click on Receive Products, then Validate. - Go back to the RFQ and click on Create Bill. - Change the date to two weeks ago (in order to trigger an exchange difference). - Confirm it. Current Behavior: A `ValidationError` is raised in `_validate_distribution()`: "One or more lines require a 100% analytic distribution." Cause: This happens because the exchange difference journal items are created without `analytic_distribution` even though they should, since it was set as mandatory. Solution: Make sure the `analytic_distribution` is properly set when creating stock valuation lines. A test is also added to cover this use case. task-3582164 closes odoo/odoo#147387 X-original-commit: fafcf452c68aad27754a8c9bd7bde1742be61cb8 Signed-off-by: Habib Ayob (ayh) <ayh@odoo.com> Signed-off-by: John Laterre (jol) <jol@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%