TRIGGER_EVENTS extended with three new events:
- cert_awaiting_issuance — fires on in_progress → awaiting_cert
- cert_voided_re_notify — fires on awaiting_ship → awaiting_cert
regress (cert voided post-issue)
- job_shipped — fires on button_mark_shipped
_dispatch routes cert events through new internal-recipient resolver
(QM/Manager/Owner via all_group_ids, transitive per Rule 13l)
instead of the partner-based stream lookup. Other events unchanged.
Mail templates (fp_cert_authority_templates.xml): two new
mail.template records bound to fp.job. Amber accent bar for awaiting,
red accent bar for void-re-issue. Deep-link to
/odoo/action-...?tab=certificates so QM lands on the right tab.
Activity type (fp_activity_types_data.xml): mail.activity.type
activity_type_issue_coc — bound to fp.job, 1-day delay, certificate
icon.
fp.job helpers:
_fp_schedule_cert_activity: round-robin by oldest login_date,
idempotent on existing open activity, soft-fails if helpers
are missing.
_fp_resolve_cert_activities: auto-resolves on awaiting_ship,
soft-fails on per-activity exceptions.
Manifest bumps:
fusion_plating_notifications 19.0.6.6.1 → 19.0.7.0.0
fusion_plating_jobs: data list gains fp_activity_types_data.xml
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
44 lines
1.4 KiB
Python
44 lines
1.4 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 — Notifications',
|
|
'version': '19.0.7.0.0',
|
|
'category': 'Manufacturing/Plating',
|
|
'summary': 'Auto-email notifications at workflow milestones with configurable templates, PDF attachments, and audit log.',
|
|
'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_configurator',
|
|
'fusion_plating_certificates',
|
|
'fusion_plating_receiving',
|
|
'fusion_plating_invoicing',
|
|
'fusion_plating_logistics',
|
|
'fusion_plating_reports',
|
|
'fusion_shipping',
|
|
'sale_management',
|
|
'account',
|
|
'mail',
|
|
],
|
|
'data': [
|
|
'security/ir.model.access.csv',
|
|
'data/mail_template_data.xml',
|
|
'data/fp_notification_template_data.xml',
|
|
'data/fp_cert_authority_templates.xml',
|
|
'views/fp_notification_template_views.xml',
|
|
'views/fp_notification_log_views.xml',
|
|
'views/fp_notifications_menu.xml',
|
|
],
|
|
'post_init_hook': 'post_init_hook',
|
|
'installable': True,
|
|
'application': False,
|
|
'auto_install': False,
|
|
}
|