Go to file
2026-01-29 08:51:57 +07:00
models feat: Default company ID for quality checks and refactor lot assignment to use lot_ids while preserving quality state. 2026-01-29 08:51:57 +07:00
tests fix: Ensure company_id is set from the associated picking during quality check creation to prevent missing value errors. 2026-01-28 15:57:44 +07:00
__init__.py feat: Preserve quality check states and allow pre-lot checks for receipt operations by modifying quality.check and stock.move.line logic. 2026-01-15 09:36:53 +07:00
__manifest__.py chore: Update module version from 18.0.1.0.0 to 19.0.1.0.0. 2026-01-20 17:27:10 +07:00
.gitignore feat: Preserve quality check states and allow pre-lot checks for receipt operations by modifying quality.check and stock.move.line logic. 2026-01-15 09:36:53 +07:00
README.md feat: Preserve quality check states and allow pre-lot checks for receipt operations by modifying quality.check and stock.move.line logic. 2026-01-15 09:36:53 +07:00

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