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:
@@ -21,7 +21,7 @@ class FpContractReviewClientEmailWizard(models.TransientModel):
|
||||
the form clearly shows when the request went out.
|
||||
"""
|
||||
_name = 'fp.contract.review.client.email.wizard'
|
||||
_description = 'Contract Review — Email Client (Request Info)'
|
||||
_description = 'Contract Review - Email Client (Request Info)'
|
||||
|
||||
review_id = fields.Many2one(
|
||||
'fp.contract.review',
|
||||
@@ -63,11 +63,11 @@ class FpContractReviewClientEmailWizard(models.TransientModel):
|
||||
part_label = (review.part_id and review.part_id.display_name) or '-'
|
||||
po_label = review.contract_po_number or review.quote_or_job_number or '-'
|
||||
failure_html = review.qa_failure_reason or _(
|
||||
'<p>(Reason not yet captured — type details here.)</p>'
|
||||
'<p>(Reason not yet captured - type details here.)</p>'
|
||||
)
|
||||
if 'subject' in fields_list and not vals.get('subject'):
|
||||
vals['subject'] = _(
|
||||
'%(company)s — Information request for Contract Review '
|
||||
'%(company)s - Information request for Contract Review '
|
||||
'%(name)s (PO %(po)s)'
|
||||
) % {
|
||||
'company': company.name or '',
|
||||
@@ -85,7 +85,7 @@ class FpContractReviewClientEmailWizard(models.TransientModel):
|
||||
'<p>Please reply with the requested information at '
|
||||
'your earliest convenience so we can complete the '
|
||||
'review and proceed with production.</p>'
|
||||
'<p>Thank you,<br/>%(company)s — Quality Team</p>'
|
||||
'<p>Thank you,<br/>%(company)s - Quality Team</p>'
|
||||
) % {
|
||||
'recipient': (review.customer_id.name or _('there')),
|
||||
'part': part_label,
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<field name="name">fp.contract.review.client.email.wizard.form</field>
|
||||
<field name="model">fp.contract.review.client.email.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Email Client — Request Info">
|
||||
<form string="Email Client - Request Info">
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="review_id" readonly="1"/>
|
||||
@@ -18,7 +18,7 @@
|
||||
<field name="subject"/>
|
||||
</group>
|
||||
<separator string="Message"/>
|
||||
<field name="body" placeholder="Compose the message to the client. The body has been pre-filled with the QA failure reason — edit as needed."/>
|
||||
<field name="body" placeholder="Compose the message to the client. The body has been pre-filled with the QA failure reason - edit as needed."/>
|
||||
</sheet>
|
||||
<footer>
|
||||
<button name="action_send"
|
||||
|
||||
Reference in New Issue
Block a user