df110305a147e71daa207898a5a635e0fc2737f4
Strap yourself in, we're in for a ride: The module sale_stock_margin overrides SaleOrderLine._compute_purchase_price and adds some extra dependencies, the key dependency here is 'move_ids'. The field move_ids is defined in sale_stock's override of sale.order.line, however sale_stock is not a dependency of sale_stock_margin, but since they implicitly share the same dependencies and are both auto_install=True it is impossible to install sale_stock_margin without having sale_stock be automatically installed. However, since sale_stock_margin does not explicitly depend on sale_stock, if one were to uninstall sale_stock without uninstalling sale_stock_margin first, the registry would crash because sale_stock_margin's override of _compute_purchase_price would depend on a field that no longer exists (move_ids). This commit changes sale_stock_margin's dependency graph to explicitly depend on `sale_stock`, this in turn means we can forego the `stock_account` dependency since it's an explicit dependency of `sale_stock`. closes odoo/odoo#75693 Signed-off-by: Raphael Collet (rco) <rco@openerp.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%