| models | ||
| views | ||
| wizard | ||
| __init__.py | ||
| __manifest__.py | ||
| .gitignore | ||
| README.md | ||
Quality Patch
This module addresses specific issues encountered in Odoo 19 Quality Management.
Fixed Issues
- MRP Quality Check AttributeError: Fixes
AttributeError: 'mrp.production' object has no attribute 'lot_producing_id'by adding a compatibility layer to themrp.productionmodel. It provides a computedlot_producing_idfield (alias tolot_producing_ids[:1]), satisfying all Odoo 18-style callers. - Partial Failure / Quantity Discrepancy & Reversion: Fixes issues where partial failure quantities (e.g., 20,000) reverted to full production quantities (e.g., 220,000) after MO completion.
- Persistent Input Storage: Introduces a new field
qty_failed_manualthat permanently stores your wizard input. - Recompute Protection: The system now strictly prioritizes this manual value over any automatic recomputations, ensuring reports remain accurate.
- Popup Capture: Overrides the wizard's confirmation logic to ensure the specific quantity entered in the failure popup is captured correctly.
- Persistent Input Storage: Introduces a new field
- MO Closing Error (Price Difference): Fixes a
ValueErrorduring MO closing when a product has multiple split moves (common after partial quality failures). Overrides_cal_priceonstock.moveto handle multiple finished moves. - "Control per Quantity" on MOs: Removes the standard restriction that prevented selecting "Control per Quantity" for Manufacturing Operations, allowing for the partial failure workflow to be used.
Installation
- Ensure this module is in your Odoo
addonspath. - Update the Apps List in Odoo.
- Install or Upgrade
quality_patch.
Technical Details
- Model Compatibility: Extends
mrp.productionto providelot_producing_id. - Inheritance: Extends
quality.check.wizard(Transient Model) andquality.check. - Views: Extends
quality_control.quality_check_wizard_form_failurevia XPath. - Dependencies:
quality_mrp,quality_control,mrp.
Created by Antigravity AI Assistant