# Quality Check Lot Preserve ## Overview This module preserves the state of Quality Checks (`quality.check`) when lot numbers are assigned during receipt operations. It is designed to support workflows where quality checks are performed *before* or *during* the assignment of Lot/Serial numbers. ## Features - **Preserve Check State**: Prevents Quality Checks from generating new checks or resetting their state (Pass/Fail) when a user assigns a Lot Number to a move line. - **Allow Pre-Lot Checks**: Overrides default strict Odoo behavior to allow Quality Checks to be initiated and processed on Receipt operations even if the tracked product does not yet have a Lot/Serial Number assigned. ## Technical Details - Overrides `quality.check` `_is_to_do()` to permit checks on receipts without lots. - Overrides `stock.move.line` `_create_check()` to prevent duplicates. - Uses custom state preservation logic during `write()` operations on quality checks and move lines. ## Dependencies - `quality_control` - `stock`