168f4d75ef724ee99ffaf7884730facd8ed936bb
One of the goal of this refactoring is also to run the vacuum when the cost method is AVCO. This will be used allow already out landed cost on AVCO and also to have a consistent value when going into negative. We update `_prepare_in_svl_vals` to set the remaining_qty field that will be used when fifo is implemented. On the stock move, we create the layer in with the real price unit of the move and adapt product_price_update_before_done. This method will now compute the AVCO according to the quantity valued in stock (quantity_svl) instead of all the quantities in stock (qty_available), which was wrong (qty_available could contain consigned quants). We also make sure to recompute the avco when editing a done move. We don't implement yet the negative handling as we'll need fifo for that. 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%