feat(configurator): A2 - add Express flags to fp.direct.order.line

This commit is contained in:
gsinghpal
2026-05-26 20:58:23 -04:00
parent 5f898d4209
commit f04b31cec7
2 changed files with 41 additions and 0 deletions

View File

@@ -459,6 +459,24 @@ class FpDirectOrderLine(models.Model):
'or from the part\'s default range.',
)
# ---- Express Orders per-line flags (2026-05-26) ----
customer_line_ref = fields.Char(
string='Customer Line Job #',
help='Per-line customer sub-reference (e.g. ABC, DEF). Distinct from '
'the order-level Customer Job #. Prints on customer docs.',
)
masking_enabled = fields.Boolean(
string='Masking Enabled',
default=True,
help='When False, masking + de-masking recipe nodes are opted out '
'when the job is created.',
)
bake_instructions = fields.Text(
string='Bake Instructions',
help='Free-text bake instructions. Empty = bake steps are opted out. '
'Non-empty = bake step instructions on the operator tablet.',
)
# ---- Computes ----
@api.depends('quantity', 'unit_price')
def _compute_line_subtotal(self):