-
- Downloads
[FIX] stock: avoid attempt to create the same lot
How to reproduce: - Create a product tracked by lot; - Create two receipts for this product; - Use the same lot name in the two receipts; - Try to validate the two receipts in the same time => `ValidationError` will trigger in the `_check_unique_lot` constrain of the production lot. task-2646107 Part-of: odoo/odoo#76847
Showing
- addons/product_expiry/models/stock_move_line.py 1 addition, 1 deletionaddons/product_expiry/models/stock_move_line.py
- addons/stock/models/stock_move_line.py 20 additions, 12 deletionsaddons/stock/models/stock_move_line.py
- addons/stock/tests/test_generate_serial_numbers.py 1 addition, 0 deletionsaddons/stock/tests/test_generate_serial_numbers.py
- addons/stock/tests/test_move2.py 0 additions, 1 deletionaddons/stock/tests/test_move2.py
- addons/stock/tests/test_stock_flow.py 122 additions, 6 deletionsaddons/stock/tests/test_stock_flow.py
Loading
Please register or sign in to comment