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:
@@ -60,7 +60,7 @@ def _build_combos(env):
|
||||
|
||||
def _create_so(env, partner, part, coating, qty, deadline_offset_days):
|
||||
"""Create + confirm a SO with one plating line. Returns (so, job)."""
|
||||
# fp.part.catalog has no product_id field — use a generic product
|
||||
# fp.part.catalog has no product_id field - use a generic product
|
||||
# for the SO line. Plating-specific fields (x_fc_part_catalog_id,
|
||||
# x_fc_coating_config_id) carry the real linkage.
|
||||
fallback_product = env['product.product'].search(
|
||||
@@ -106,7 +106,7 @@ def _create_job_direct(env, partner, part, recipe, qty, deadline_offset_days):
|
||||
}
|
||||
if part:
|
||||
vals['part_catalog_id'] = part.id
|
||||
# fp.part.catalog has no product_id field — leave fp.job.product_id
|
||||
# fp.part.catalog has no product_id field - leave fp.job.product_id
|
||||
# null. It's an optional field used as a "Reference Product".
|
||||
return Job.create(vals)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user