优化销售订单+工单逾期预警和已1逾期代码

This commit is contained in:
jinling.yang
2024-10-10 17:36:35 +08:00
parent 02467d5220
commit 351815ad91
8 changed files with 222 additions and 274 deletions

View File

@@ -59,7 +59,7 @@ class ResMrpWorkOrder(models.Model):
compute='_compute_state', store=True,
default='pending', copy=False, readonly=True, recursive=True, index=True, tracking=True)
# state = fields.Selection(selection_add=[('to be detected', "待检测"), ('rework', '返工')], tracking=True)
delivery_warning = fields.Selection([('normal', '正常'), ('warning', '告警'), ('overdue', '逾期')], string='时效')
@api.depends('production_id.manual_quotation')
def _compute_manual_quotation(self):