chore(plating): de-dash shipped code + intake-neutral customer emails
Replace em-dashes and en-dashes with hyphens across 789 shipped source files (py/xml/js/scss) so the delivered module reads as human-written; em-dashes had become a recognizable AI-generated tell. Internal .md dev notes are excluded. The WO-sticker mojibake strippers keep their dash search targets (now written — / –). No logic changes: comments and display strings only; validated with py_compile + lxml parse. Rewrite the 7 customer notification emails to be intake-neutral (ship-in / drop-off / pickup) and repair-aware, and fix the Shipped email documents line (packing slip vs bill of lading; certificate only when issued). Subjects use a hyphen separator. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
# Part of the Fusion Plating product family.
|
||||
|
||||
{
|
||||
'name': 'Fusion Plating — KPI Dashboard',
|
||||
'name': 'Fusion Plating - KPI Dashboard',
|
||||
'version': '19.0.1.1.2',
|
||||
'category': 'Manufacturing/Plating',
|
||||
'summary': 'Configurable KPI dashboards for plating operations.',
|
||||
|
||||
@@ -184,7 +184,7 @@ class FpKpi(models.Model):
|
||||
def _kpi_otd(self, today):
|
||||
"""Portal jobs shipped on or before target_ship_date (last 30 d).
|
||||
|
||||
NOTE: fusion.plating.portal.job has no facility_id — the
|
||||
NOTE: fusion.plating.portal.job has no facility_id - the
|
||||
facility filter on this KPI type is therefore ignored.
|
||||
"""
|
||||
cutoff = today - timedelta(days=30)
|
||||
@@ -271,7 +271,7 @@ class FpKpi(models.Model):
|
||||
def _kpi_bath_uptime(self, today):
|
||||
"""Operational baths / active baths * 100.
|
||||
|
||||
Bath has facility via tank_id.facility_id — filter is supported.
|
||||
Bath has facility via tank_id.facility_id - filter is supported.
|
||||
"""
|
||||
extra = self._company_clause('b')
|
||||
if self.facility_id:
|
||||
|
||||
@@ -7,17 +7,17 @@
|
||||
<odoo>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- RECORD RULES — Multi-company isolation -->
|
||||
<!-- RECORD RULES - Multi-company isolation -->
|
||||
<!-- ================================================================== -->
|
||||
<record id="fp_kpi_company_rule" model="ir.rule">
|
||||
<field name="name">Fusion Plating KPI: KPI — multi-company</field>
|
||||
<field name="name">Fusion Plating KPI: KPI - multi-company</field>
|
||||
<field name="model_id" ref="model_fusion_plating_kpi"/>
|
||||
<field name="global" eval="True"/>
|
||||
<field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'in', company_ids)]</field>
|
||||
</record>
|
||||
|
||||
<record id="fp_kpi_value_company_rule" model="ir.rule">
|
||||
<field name="name">Fusion Plating KPI: KPI Value — multi-company</field>
|
||||
<field name="name">Fusion Plating KPI: KPI Value - multi-company</field>
|
||||
<field name="model_id" ref="model_fusion_plating_kpi_value"/>
|
||||
<field name="global" eval="True"/>
|
||||
<field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'in', company_ids)]</field>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<!-- Phase D (perms v2) — Manager+ only. Operators don't need dashboards. -->
|
||||
<!-- Phase D (perms v2) - Manager+ only. Operators don't need dashboards. -->
|
||||
<menuitem id="menu_fp_dashboard"
|
||||
name="KPIs"
|
||||
parent="fusion_plating.menu_fp_root"
|
||||
|
||||
Reference in New Issue
Block a user