feat(configurator): add dual descriptions to sale.order.line (Sub 2 Task 3)
This commit is contained in:
@@ -12,6 +12,19 @@ class SaleOrderLine(models.Model):
|
||||
x_fc_part_catalog_id = fields.Many2one(
|
||||
'fp.part.catalog', string='Part',
|
||||
)
|
||||
# Sub 2 — dual descriptions captured from a template row at order
|
||||
# entry. `name` remains Odoo's standard customer-facing line
|
||||
# description; x_fc_internal_description is ops-only (prints on WO).
|
||||
# Nullable during Phase A; flipped to required in Phase C.
|
||||
x_fc_internal_description = fields.Text(
|
||||
string='Internal Description',
|
||||
help='Shop-floor instructions. Prints on WO / traveler. Never on customer docs.',
|
||||
)
|
||||
x_fc_description_template_id = fields.Many2one(
|
||||
'fp.sale.description.template',
|
||||
string='Description Template',
|
||||
help='Which template row populated this line. Informational.',
|
||||
)
|
||||
x_fc_coating_config_id = fields.Many2one(
|
||||
'fp.coating.config', string='Primary Treatment',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user