0ac1e45e4cf28f9a4be0e8a02ac236db80c5ce07
- Go to Inventory > Configuration > Settings and activate "Expiration Dates" - Create a storable product tracked by lot with expiration date (i.e. Component A) - Update quantity of Component A in a lot with an expired expiration date (i.e. Lot A) - Create a consumable product (i.e. Component B) - Create a storable product (i.e. Product X) with a BoM having Component A & B as components - Create a MO for Product X with a quantity to produce set to 1 - Confirm MO - Edit MO to set quantity produced to 2 - Set consumed quantity for Component A to Lot A - Mark MO as done - Confirm confirmation wizard about using expired Lot A for Component A The following Validation Error is triggered: "This lot Lot A is incompatible with this product Component B" In order to display lot in the confirmation wizard, the ids of the expired lots are added in the context under key "default_lot_ids". As we have set a produced quantity higher than the original quantity, some additional stock moves will be created for final product and it components. As "default_lot_ids" is still in the context at that point, it will set it for stock move lines of both components, which will generate the Validation Error for Component B. "default_lot_ids" should be removed from context after confirming confirmation wizard for expired lots. opw-2543863 closes odoo/odoo#73302 X-original-commit: e70275f0bb7357385990e2fb9997ac495fd7f452 Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.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%