quality_check_lot_preserve/__manifest__.py
2025-11-27 10:02:32 +07:00

42 lines
1.5 KiB
Python

# -*- coding: utf-8 -*-
{
'name': 'Quality Check Lot Preserve',
'version': '18.0.1.0.0',
'category': 'Inventory/Quality',
'summary': 'Preserve quality check states when lot numbers are assigned during receipt operations',
'description': """
Quality Check Lot Preservation
===============================
This module modifies the standard Odoo 18 quality check behavior for receipt operations.
Key Features:
-------------
* Preserves quality check states when lot numbers are assigned after quality checks are completed
* Automatically copies lot numbers from stock move lines to related quality checks
* Maintains synchronization when lot numbers are changed
* Applies only to receipt operations, leaving other workflows unchanged
Use Case:
---------
In standard Odoo, when a quality check is completed before a lot number is assigned,
the quality check resets to "Todo" state when the lot number is later assigned.
This module prevents that reset and automatically updates the quality check with the lot number.
Technical Details:
------------------
* Extends stock.move.line to detect lot number changes
* Extends quality.check to prevent state resets for receipt operations
* Maintains full compatibility with standard Odoo quality control workflows
""",
'author': 'Suherdy Yacob',
'license': 'LGPL-3',
'depends': [
'stock',
'quality_control',
],
'installable': True,
'application': False,
'auto_install': False,
}