861db8a5a766460bf6d37e36c0cec0af791a2abe
Steps to reproduce: Make a sale order with a product and quantity > 1, add FedEx international shipping and validate the delivery In the document you will see that the unit cost is equal to subtotal which is wrong. There is a discrepancy between `_get_commodities_from_order` and `_get_commodities_from_stock_move_lines`, that the former makes commodities with `monetary_value` equal to the unit price, while the latter uses subtotal. in the method `commodities` in `delivery_fedex`, `monetary_value` is treated as unit price, so the right way to fix it is to do it in `_get_commodities_from_stock_move_lines`. Note that when rating a delivery, commodities are made in `_get_commodities_from_order` and then passed to `commodities`, while for sending the shipping, commodities are made in `_get_commodities_from_stock_move_lines`. opw-3233369 closes odoo/odoo#117521 X-original-commit: 3beddbdd18937e1c69ec4fa6f523296c7c55528b Related: odoo/enterprise#39234 Signed-off-by: Tiffany Chang <tic@odoo.com> Signed-off-by: Khanalizadeh Ahmad (khah) <khah@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%