refactor(bridge_mrp): route button_mark_done cert cascade through resolver (Sub 2 Task 10)
This commit is contained in:
@@ -947,12 +947,9 @@ class MrpProduction(models.Model):
|
||||
# paperwork gets zero certs auto-generated.
|
||||
if Certificate is not None:
|
||||
customer = job.partner_id
|
||||
want_coc = True # default for customers that predate the flag
|
||||
want_thickness = True
|
||||
if 'x_fc_send_coc' in customer._fields:
|
||||
want_coc = bool(customer.x_fc_send_coc)
|
||||
if 'x_fc_send_thickness_report' in customer._fields:
|
||||
want_thickness = bool(customer.x_fc_send_thickness_report)
|
||||
# Sub 2: part-level cert requirement wins; partner is fallback.
|
||||
# Single entry point for all cert decisions.
|
||||
want_coc, want_thickness = mo._fp_resolve_cert_requirement()
|
||||
|
||||
coating = so.x_fc_coating_config_id if (
|
||||
so and 'x_fc_coating_config_id' in so._fields
|
||||
|
||||
Reference in New Issue
Block a user