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:
@@ -5,7 +5,7 @@
|
||||
|
||||
Opens when fp.receiving.action_generate_outbound_label fires (assuming
|
||||
a label hasn't already been generated). Forces the operator to look at
|
||||
carrier + service tier + weight before the API call is made — cheaper
|
||||
carrier + service tier + weight before the API call is made - cheaper
|
||||
shipping decisions, no surprise charges, and a hard gate against the
|
||||
accidental-double-click bug where every Generate click leaked a fresh
|
||||
FedEx shipment + tracking number.
|
||||
@@ -19,7 +19,7 @@ from odoo.exceptions import UserError
|
||||
|
||||
class FpLabelGenerateWizard(models.TransientModel):
|
||||
_name = 'fp.label.generate.wizard'
|
||||
_description = 'Fusion Plating — Confirm Label Generation'
|
||||
_description = 'Fusion Plating - Confirm Label Generation'
|
||||
|
||||
receiving_id = fields.Many2one(
|
||||
'fp.receiving', required=True, readonly=True, ondelete='cascade',
|
||||
@@ -52,7 +52,7 @@ class FpLabelGenerateWizard(models.TransientModel):
|
||||
)
|
||||
|
||||
def _fp_get_service_type_selection(self):
|
||||
# Single source of truth — pulls the curated list from
|
||||
# Single source of truth - pulls the curated list from
|
||||
# fp.receiving so both the form dropdown and the wizard stay
|
||||
# in sync. See fp.receiving._FP_USABLE_FEDEX_SERVICES.
|
||||
Receiving = self.env.get('fp.receiving')
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<form string="Generate Outbound Label">
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<h2>Generate Label —
|
||||
<h2>Generate Label -
|
||||
<field name="receiving_name"
|
||||
readonly="1" nolabel="1" class="oe_inline"/>
|
||||
</h2>
|
||||
|
||||
@@ -21,7 +21,7 @@ from odoo.exceptions import UserError
|
||||
|
||||
class FpLabelManualWizard(models.TransientModel):
|
||||
_name = 'fp.label.manual.wizard'
|
||||
_description = 'Fusion Plating — Manual Outbound Label Entry'
|
||||
_description = 'Fusion Plating - Manual Outbound Label Entry'
|
||||
|
||||
receiving_id = fields.Many2one(
|
||||
'fp.receiving', required=True, readonly=True, ondelete='cascade',
|
||||
@@ -35,7 +35,7 @@ class FpLabelManualWizard(models.TransientModel):
|
||||
)
|
||||
note = fields.Text(
|
||||
string='Why Manual?', readonly=True,
|
||||
help='Explanatory message — set by the caller (no API, API '
|
||||
help='Explanatory message - set by the caller (no API, API '
|
||||
'failure, etc.).',
|
||||
)
|
||||
label_pdf = fields.Binary(string='Shipping Label PDF')
|
||||
@@ -55,7 +55,7 @@ class FpLabelManualWizard(models.TransientModel):
|
||||
ship = self.shipment_id
|
||||
if not ship:
|
||||
raise UserError(_(
|
||||
'No outbound shipment linked to this receiving — '
|
||||
'No outbound shipment linked to this receiving - '
|
||||
'cannot save manual label.'
|
||||
))
|
||||
# Create the attachment, then write the shipment.
|
||||
@@ -73,7 +73,7 @@ class FpLabelManualWizard(models.TransientModel):
|
||||
'status': 'confirmed',
|
||||
})
|
||||
ship.message_post(body=Markup(_(
|
||||
'Manual label saved — tracking <b>%s</b>.'
|
||||
'Manual label saved - tracking <b>%s</b>.'
|
||||
)) % self.tracking_number)
|
||||
self.receiving_id.message_post(body=Markup(_(
|
||||
'Outbound label entered manually. Tracking: <b>%s</b>'
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<form string="Manual Outbound Label Entry">
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<h2>Enter Label Manually —
|
||||
<h2>Enter Label Manually -
|
||||
<field name="receiving_name"
|
||||
readonly="1" nolabel="1" class="oe_inline"/>
|
||||
</h2>
|
||||
|
||||
Reference in New Issue
Block a user