7e3f7f0505ae4ce19bd6099c6727a18c904c9aff
BoM Structure & Cost report has different errors: - The product cost of a subcontractor included in a product doesn't scale with the quantity of the product (Issue 1) - The BoM cost of a product composed of a subcontractor doesn't include the subcontractor price (Issue 2) - The BoM cost of a component composed of a subcontractor doesn't scale with the quantity for the subcontractor price (Issue 3) Steps to reproduce: 1. Install mrp_subcontracting_purchase 2. Create a product 'TEST 1', in the Purchase tab specify 'Azure Interior' as vendor with price 5$ 3. Create a bill of material for the product 'TEST 1' with BoM type 'subcontracting', subcontractor 'Azure Interior' and product 'Bolt' as component 4. Create another product 'TEST 2', in the Purchase tab specify 'Azure Interior' as vendor with price 8$ 5. Create a bill of material for the product 'TEST 2' with BoM type 'subcontracting', subcontractor 'Azure Interior' and product 'TEST 1' as component 6. Go to the BoM Structure and Cost of product 'TEST 1' 7. The product BoM Cost doesn't include the subcontractor price (it should be the sum of its components) (Issue 1) 8. Increase the quantity of the product by 1 9. The subcontractor's product cost doesn't change (it should increase with the quantity) (Issue 2) 10. Go to the BoM Structure and Cost of product 'TEST 2' 11. Increase the quantity of the product by 1 12. The BoM Cost of component 'TEST 1' only counts the subcontractor price once (it should be the sum of its components) (Issue 3) Solution: Scale the subcontractor product cost with the quantity, update the BoM cost of a product with the subcontractor price (in `_get_bom`) and scale the subcontractor price with the quantity (in `_get_price`) opw-2844482 closes odoo/odoo#92095 X-original-commit: 4f3347c6925e10ec62a85bb01d7cdb65b1e13b15 Signed-off-by: Adrien Widart <awt@odoo.com> Signed-off-by: Guillaume Merlin (megu) <megu@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%