8db7d70776a276d153d62708c9b703b0b756dae6
Suppose you have a workorder to create n units of product P, using raw material R (suppose we use one for one, the following can be extended to any number of raw materials and factors in a straightforward manner). Produce j < n units of P. Next, update the quantity to produce to j < k < n. Since any number m of units between j and n may already have been reserved, in particular values such that m > k, the move will unreserve the material R. However, while doing so it will unlink the move_lines, and lose the quantity_done (j). The newly created move lines have a quantity_done of zero by default. Therefore, we store in a dictionary the quantities done for each move line, and reset these values once the unreservation/reservation of k units is done. opw 1911969 closes odoo/odoo#28990
…
…
…
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%