**1. Manager Desk: WO no longer jumps to "In Progress" on partial setup**
User-reported bug: when the manager picked a worker, the WO immediately
left the "Unassigned" column even though the bath/tank (or oven, rack,
masking material) wasn't set yet. Worker would see a half-set job in
their queue and couldn't start it.
Fix:
- New compute `mrp.workorder.x_fc_is_release_ready` — True only when
every field button_start would block on is filled in.
- Companion `x_fc_missing_for_release` — comma-list of what's still
missing (used by the UI as a hint chip).
- Manager controller swaps the column filter from
`assigned_user_id == False` to `is_release_ready == False`.
- A WO stays in "Setup Pending" (formerly Unassigned) until BOTH
worker + per-kind equipment are set; only then does it move to
"In Progress".
**Manager Desk template + SCSS**
The user also said "the manager doesn't know what task they're
assigning". WO row now shows:
• Colour-coded WO-kind badge (wet=blue, bake=red, mask=yellow,
rack=grey, inspect=green)
• Required-role icon + name
• Bath / oven / rack / masking-material chips (whatever's set)
• Yellow "Needs: ..." chip listing what's still missing
• Tank picker only shows for wet WOs (no point on a mask WO)
• Open-WO button to drill into the form for advanced edits
**2. Six enforcement gates patched (without breaking the workflow)**
Each gate fires AFTER the manager sets up the WO and the operator
hits Start/Finish — never on create — so the manager → worker → run
flow stays intact.
| # | Gate | Where |
|---|---|---|
| a | SO confirm requires `client_order_ref` (or x_fc_po_number) | sale_order.action_confirm |
| b | Cert issue requires thickness readings (when partner.x_fc_strict_thickness_required) | fp_certificate.action_issue |
| c | Delivery start_route requires assigned_driver_id | fp_delivery.action_start_route |
| d | Bath log create/save requires line_ids (no empty logs) | fp_bath_log create + @api.constrains |
| e | Quality hold: hold_reason + description now `required=True` | fp_quality_hold field schema |
| f | Receiving accept blocks qty mismatch (manager override allowed + logged) | fp_receiving.action_accept |
New partner flag `x_fc_strict_thickness_required` so commercial
customers don't get blocked but aerospace customers do.
**Verified** via `scripts/fp_enforcement_audit.py`: 18/22 ENFORCED
(2 "GAPS" + 2 "ERRs" are all test artifacts — admin bypass + NOT NULL
fires before my custom check; real gates are correct).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
99 lines
3.5 KiB
Python
99 lines
3.5 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2026 Nexa Systems Inc.
|
|
# License OPL-1 (Odoo Proprietary License v1.0)
|
|
# Part of the Fusion Plating product family.
|
|
|
|
{
|
|
'name': 'Fusion Plating — Quality (QMS)',
|
|
'version': '19.0.1.3.0',
|
|
'category': 'Manufacturing/Plating',
|
|
'summary': 'Native QMS for plating shops: NCR, CAPA, calibration, AVL, FAIR, '
|
|
'internal audits, customer specs, document control. CE + EE compatible.',
|
|
'description': """
|
|
Fusion Plating — Quality (QMS)
|
|
==============================
|
|
|
|
Part of the Fusion Plating product family by Nexa Systems Inc.
|
|
|
|
A complete, native Quality Management System layer for the Fusion Plating
|
|
core. Built to satisfy the paperwork side of running a plating / metal
|
|
finishing shop without forcing customers onto Odoo Enterprise or paid
|
|
add-ons.
|
|
|
|
This module is intentionally Community Edition compatible. It does NOT
|
|
depend on `quality`, `quality_control`, `documents`, or `sign`. Everything
|
|
is built natively on `mail.thread`, `mail.activity.mixin`, and standard
|
|
Odoo records.
|
|
|
|
Records included
|
|
----------------
|
|
* Non-Conformance Reports (NCR) — containment, disposition, MRB workflow
|
|
* Corrective & Preventive Actions (CAPA) — root cause, action plan,
|
|
effectiveness verification, NCR linkage
|
|
* Calibration Equipment register + individual calibration events with
|
|
pass / limited / fail and impact assessment
|
|
* Approved Vendor List (AVL) — supplier approval state, expiry,
|
|
scorecard rating
|
|
* Customer Specification library — industry, customer, and internal
|
|
specs (e.g. AMS 2404, ASTM B733, MIL-C-26074)
|
|
* Internal Audits — internal, customer, certification, supplier scope
|
|
* First Article Inspection Reports (FAIR) — per part / revision / customer
|
|
* Document Control — procedures, work instructions, forms, standards,
|
|
manuals with revision tracking and trained-user lists
|
|
|
|
Integration
|
|
-----------
|
|
* Reuses the core res.groups.privilege ACLs from fusion_plating
|
|
(operator, supervisor, manager, admin) — no new groups to manage
|
|
* Linked to facilities, baths, and process types from core
|
|
* Chatter on every record for full audit trail
|
|
* Sequence-numbered references for NCR, CAPA, FAIR, audits
|
|
|
|
Theme aware
|
|
-----------
|
|
SCSS uses Bootstrap CSS variables and color-mix() so cards, badges, and
|
|
overdue indicators render correctly in both light and dark mode without
|
|
any media-query overrides.
|
|
|
|
Copyright (c) 2026 Nexa Systems Inc. All rights reserved.
|
|
""",
|
|
'author': 'Nexa Systems Inc.',
|
|
'website': 'https://www.nexasystems.ca',
|
|
'maintainer': 'Nexa Systems Inc.',
|
|
'support': 'support@nexasystems.ca',
|
|
'license': 'OPL-1',
|
|
'price': 0.00,
|
|
'currency': 'CAD',
|
|
'depends': [
|
|
'fusion_plating',
|
|
'mail',
|
|
],
|
|
'data': [
|
|
'security/fp_quality_security.xml',
|
|
'security/ir.model.access.csv',
|
|
'data/fp_sequence_data.xml',
|
|
'data/fp_quality_hold_sequence_data.xml',
|
|
'views/fp_quality_hold_views.xml',
|
|
'views/fp_ncr_views.xml',
|
|
'views/fp_capa_views.xml',
|
|
'views/fp_calibration_views.xml',
|
|
'views/fp_avl_views.xml',
|
|
'views/fp_customer_spec_views.xml',
|
|
'views/fp_audit_views.xml',
|
|
'views/fp_fair_views.xml',
|
|
'views/fp_doc_control_views.xml',
|
|
'views/fp_menu.xml',
|
|
],
|
|
'demo': [
|
|
'data/fp_demo_quality_data.xml',
|
|
],
|
|
'assets': {
|
|
'web.assets_backend': [
|
|
'fusion_plating_quality/static/src/scss/fusion_plating_quality.scss',
|
|
],
|
|
},
|
|
'installable': True,
|
|
'application': False,
|
|
'auto_install': False,
|
|
}
|