feat(configurator): add certificate_requirement field to fp.part.catalog (Sub 2 Task 1)
This commit is contained in:
@@ -131,6 +131,21 @@ class FpPartCatalog(models.Model):
|
||||
notes = fields.Html(string='Notes')
|
||||
active = fields.Boolean(string='Active', default=True)
|
||||
|
||||
certificate_requirement = fields.Selection(
|
||||
[
|
||||
('inherit', 'Inherit from Customer'),
|
||||
('none', 'No Certificate'),
|
||||
('coc', 'CoC Only'),
|
||||
('coc_thickness', 'CoC + Thickness Report'),
|
||||
],
|
||||
string='Certificate Requirement',
|
||||
default='inherit',
|
||||
required=True,
|
||||
tracking=True,
|
||||
help='Determines which quality documents ship with this part. '
|
||||
'"Inherit" reads the customer\'s default on the partner form.',
|
||||
)
|
||||
|
||||
# ---- Direct-order defaults (Phase C — C4) ----
|
||||
x_fc_default_coating_config_id = fields.Many2one(
|
||||
'fp.coating.config',
|
||||
|
||||
Reference in New Issue
Block a user