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.
|
# paperwork gets zero certs auto-generated.
|
||||||
if Certificate is not None:
|
if Certificate is not None:
|
||||||
customer = job.partner_id
|
customer = job.partner_id
|
||||||
want_coc = True # default for customers that predate the flag
|
# Sub 2: part-level cert requirement wins; partner is fallback.
|
||||||
want_thickness = True
|
# Single entry point for all cert decisions.
|
||||||
if 'x_fc_send_coc' in customer._fields:
|
want_coc, want_thickness = mo._fp_resolve_cert_requirement()
|
||||||
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)
|
|
||||||
|
|
||||||
coating = so.x_fc_coating_config_id if (
|
coating = so.x_fc_coating_config_id if (
|
||||||
so and 'x_fc_coating_config_id' in so._fields
|
so and 'x_fc_coating_config_id' in so._fields
|
||||||
|
|||||||
Reference in New Issue
Block a user