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:
@@ -3,7 +3,7 @@
|
||||
# License OPL-1 (Odoo Proprietary License v1.0)
|
||||
# Part of the Fusion Plating product family.
|
||||
#
|
||||
# Sub 6 — Recipient resolver.
|
||||
# Sub 6 - Recipient resolver.
|
||||
#
|
||||
# Every outbound-notification path now routes its recipient lookup
|
||||
# through `_fp_resolve_notification_recipients`. The helper consults
|
||||
@@ -35,7 +35,7 @@ class ResPartner(models.Model):
|
||||
|
||||
Fallback: if no contact at either level carries a matching flag
|
||||
(or the global flag), the result is the company partner's own
|
||||
email. This makes the resolver drop-in safe — no customer ever
|
||||
email. This makes the resolver drop-in safe - no customer ever
|
||||
silently stops receiving notifications after Sub 6 ships.
|
||||
"""
|
||||
self.ensure_one()
|
||||
@@ -62,7 +62,7 @@ class ResPartner(models.Model):
|
||||
recipients.append(contact.email)
|
||||
|
||||
if not recipients:
|
||||
# Nobody opted in via contacts — fall back to the company
|
||||
# Nobody opted in via contacts - fall back to the company
|
||||
# email (and the location's email, if distinct).
|
||||
if delivery_location and delivery_location != self and delivery_location.email:
|
||||
recipients.append(delivery_location.email)
|
||||
|
||||
Reference in New Issue
Block a user