4bccbb175f095be1106109dcbffc5e3fb0baa8c6
When a product category valuation is set to `real_time`, we use the stock accounts. However, in the code, to know which account we should use, we do: "use stock accounts if defined, else use basic ones" (the best should be "use stock accounts if `real_time`" but this refactoring task will be done in master). So, here, we need to ensure that stock accounts are not defined when the valuation is manual. This is the case when installing `stock_account` module: the valuations will be set to manual, so we need to force the stock accounts to `False`. Same when creating a new company, we also need to ensure that the stock accounts are not defined. This explains the changes in `_post_load_data` About changes in `_check_valuation_accouts`, the explanation is in the method body: the defined values directly depends on the value of `property_valuation` Note about test modification: for the tests in `stock_landed_costs` module, we set the categ to auto so the stock accounts are defined. Otherwise, when validating the landed costs, it will lead to an error https://github.com/odoo/odoo/blob/9cd316f038dc95051814ede9474f8f15f7d165df/addons/stock_landed_costs/models/stock_landed_cost.py#L396-L397 OPW-2746384 X-original-commit: 2780c37cfdb8560ac7c725fd27f4fe272f1d3072 Part-of: odoo/odoo#119564
…
…
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%