45e80f56b9e29bf96fbd0ed37478096518418528
Usecase to reproduce: - Create a MO for drawer with SEC assemble BoM - Plan the workorders - In the first workorder record the production without specify a lot or serial number. - Second workorder, register a new serial for finished product and record production. A UserError that prevent to use a new serial number is raised. It happens because the system check the remaing quantity on other workorders + the quantity already produced for the current lot. In this case the remaining quantity for the first workorder is 0 and the current lot was not produced. However it should count the lines without lot as a 'remaining quantity' since they could be used later to create a new serial or lot number. This commit register the lines without lot and use them to raise the UserError and compute the allowed lot domain for finished lots. closes odoo/odoo#32632 Signed-off-by: Simon Lejeune (sle) <sle@openerp.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, 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%