This commit is contained in:
gsinghpal
2026-05-27 10:36:48 -04:00
parent c876767755
commit de6336ba42
3 changed files with 49 additions and 0 deletions

View File

@@ -16,6 +16,21 @@ class ResPartner(models.Model):
string='Parts',
compute='_compute_part_count',
)
# Default lead-time band for new Express Orders. Set once per
# customer in their Plating profile; auto-copies onto every new
# Express Order via the partner-onchange on fp.direct.order.wizard.
x_fc_default_lead_time_min_days = fields.Integer(
string='Default Lead Time Min (days)',
default=0,
help='Pre-fills the Lead Time Min field on new Express Orders '
'for this customer. Operator can override per-order.',
)
x_fc_default_lead_time_max_days = fields.Integer(
string='Default Lead Time Max (days)',
default=0,
help='Pre-fills the Lead Time Max field on new Express Orders '
'for this customer. Operator can override per-order.',
)
def _compute_part_count(self):
for partner in self: