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>
37 lines
1.3 KiB
Python
37 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2026 Nexa Systems Inc.
|
|
"""Masking reference attachments - captured at Express order entry, surfaced
|
|
on the job's masking step (operator workstation) and rolled up to the job
|
|
form (office). Populated by sale.order.line._fp_apply_express_overrides_to_job.
|
|
"""
|
|
from odoo import api, fields, models
|
|
|
|
|
|
class FpJobStep(models.Model):
|
|
_inherit = 'fp.job.step'
|
|
|
|
x_fc_masking_attachment_ids = fields.Many2many(
|
|
'ir.attachment',
|
|
'fp_job_step_masking_att_rel', 'step_id', 'attachment_id',
|
|
string='Masking Reference(s)',
|
|
help='Reference image(s)/PDF(s) of what to mask, attached at order '
|
|
'entry (Express) and shown to the operator on the masking step.',
|
|
)
|
|
|
|
|
|
class FpJob(models.Model):
|
|
_inherit = 'fp.job'
|
|
|
|
x_fc_masking_attachment_ids = fields.Many2many(
|
|
'ir.attachment',
|
|
compute='_compute_masking_attachment_ids',
|
|
string='Masking References',
|
|
help='All masking reference files across this job\'s masking steps.',
|
|
)
|
|
|
|
@api.depends('step_ids.x_fc_masking_attachment_ids')
|
|
def _compute_masking_attachment_ids(self):
|
|
for job in self:
|
|
atts = job.step_ids.mapped('x_fc_masking_attachment_ids')
|
|
job.x_fc_masking_attachment_ids = [(6, 0, atts.ids)]
|