f4fde9ec58ce2b5c2e80963596a2efa2a5ccc1dd
Steps to reproduce: - Create + confirm a MO - Add a byproduct with a Produced (qty) > 1 - Change the `qty_producing` to a non-zero qty Expected result: Byproduct's "Produced" qty stays unchanged and its "To Produce" is 0 Actual result: Byproduct's "To Produce" defaults to 1 and its "Produced" qty is updated to scale to the according to the amount `qty_producing` (i.e. if `product_qty` = 2 and `qty_producing` = 1, then by-product's "Produced" = .5 Additionally, a Missing Record error pops up because of missing stock.move.line Solution, don't allow byproducts added after MO is confirmed to default to 0. Additionally allow byproducts to have 0 "To Produce" quantity and don't sum the cost share of merged byproduct moves since when Produced > To Produce then an extra move is created and the cost share ends up being doubled during the merge. closes odoo/odoo#85130 Task: 2716164 X-original-commit: 51ff14a56b909bdf22c9f1c4540347655578e1f4 Signed-off-by: Arnold Moyaux <arm@odoo.com> Signed-off-by: Tiffany Chang <tic@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%