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:
@@ -24,7 +24,7 @@ class TestDashboardSnapshotShape(TransactionCase):
|
||||
def test_section_order_is_canonical(self):
|
||||
snap = self._build()
|
||||
types_present = [s['type'] for s in snap['sections']]
|
||||
# Canonical order — cert, hold, ncr, rma, capa, check.
|
||||
# Canonical order - cert, hold, ncr, rma, capa, check.
|
||||
# Some types may be absent if their model isn't installed; the
|
||||
# PRESENT ones must appear in this relative order.
|
||||
canonical = ['cert', 'hold', 'ncr', 'rma', 'capa', 'check']
|
||||
@@ -55,7 +55,7 @@ class TestDashboardSnapshotShape(TransactionCase):
|
||||
|
||||
|
||||
class TestDashboardSnapshotItems(TransactionCase):
|
||||
"""Per-section items list — ranking + cap + shape."""
|
||||
"""Per-section items list - ranking + cap + shape."""
|
||||
|
||||
def _build(self):
|
||||
from odoo.addons.fusion_plating_quality.controllers.fp_quality_dashboard \
|
||||
@@ -167,7 +167,7 @@ class TestDashboardSnapshotBanner(TransactionCase):
|
||||
|
||||
def test_banner_all_clear_when_zero(self):
|
||||
snap = self._build()
|
||||
# Empty DB — no overdue, no critical
|
||||
# Empty DB - no overdue, no critical
|
||||
self.assertTrue(snap['banner']['all_clear'])
|
||||
self.assertEqual(snap['banner']['items'], [])
|
||||
|
||||
@@ -182,7 +182,7 @@ class TestDashboardSnapshotDefensive(TransactionCase):
|
||||
|
||||
def test_missing_partner_field_falls_through(self):
|
||||
# Empty DB + helper must not raise even when x_fc_rush absent.
|
||||
# (In this codebase x_fc_rush isn't a registered field — only
|
||||
# (In this codebase x_fc_rush isn't a registered field - only
|
||||
# read defensively via the `in partner._fields` check. The
|
||||
# snapshot must build cleanly.)
|
||||
snap = self._build()
|
||||
|
||||
Reference in New Issue
Block a user