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:
gsinghpal
2026-06-05 00:16:19 -04:00
parent c9eb61ee0c
commit 8c76a16366
789 changed files with 4692 additions and 4692 deletions

View File

@@ -33,7 +33,7 @@ def _backfill_currency(env):
def _backfill_cloned_process_names(env):
"""Append " <part_number> Rev <revision>" to every existing part-
"""Append " - <part_number> Rev <revision>" to every existing part-
cloned process ROOT whose name doesn't already carry the suffix.
Feedback on 2026-04-23: the Process tab on the part form was
@@ -43,7 +43,7 @@ def _backfill_cloned_process_names(env):
brings older clones up to the same format without forcing
users to re-compose (which would wipe their edits).
Idempotent: checks for a literal " " separator before rewriting.
Idempotent: checks for a literal " - " separator before rewriting.
"""
Node = env['fusion.plating.process.node']
roots = Node.search([
@@ -56,21 +56,21 @@ def _backfill_cloned_process_names(env):
part = root.part_catalog_id
if not part:
continue
if ' ' in (root.name or ''):
continue # Already has a suffix leave alone.
if ' - ' in (root.name or ''):
continue # Already has a suffix - leave alone.
suffix_bits = []
if part.part_number:
suffix_bits.append(part.part_number)
if part.revision:
# `revision` sometimes already carries a "Rev " prefix
# (e.g. "Rev 2") don't double up.
# (e.g. "Rev 2") - don't double up.
rev = part.revision.strip()
if not rev.lower().startswith('rev'):
rev = 'Rev %s' % rev
suffix_bits.append(rev)
if not suffix_bits:
continue
root.name = '%s %s' % (root.name or '', ' '.join(suffix_bits))
root.name = '%s - %s' % (root.name or '', ' '.join(suffix_bits))
renamed += 1