977169feeb68c2df6a2a5f8b247024949633efc0
`_get_price_unit` is used to get the price to value a stock move and returns `unit_price` if present (most of the times it is set by purchase_stock to copy the price unit of po line) or the standard price. Note that a return copies the original move and `price_unit` is set as copy False. Before this patch, a return of a return used the standard price (due to the copy False), which doens't bring any issue but could be confusing as explained in the following receipt scenario. On a receipt, return and rereturn. The original and rereturn move may not have the same price if the standard price has changed between the operations, which is weird since there's a unit price on a potentially linked po line. On an delivery, there won't be any effect since the valuation methods do not use the result of `_get_price_unit` but force it to the standard price (standard and avco) or run fifo. task-1875873
…
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, Purchase Management, ...
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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%