修改人工报价流程

This commit is contained in:
胡尧
2024-08-27 08:54:33 +08:00
parent b37738fbc3
commit 937ea42af3
2 changed files with 12 additions and 2 deletions

View File

@@ -60,7 +60,12 @@ class ResMrpWorkOrder(models.Model):
default='pending', copy=False, readonly=True, recursive=True, index=True, tracking=True)
# state = fields.Selection(selection_add=[('to be detected', "待检测"), ('rework', '返工')], tracking=True)
manual_quotation = fields.Boolean('人工编程', default=False, readonly=True)
@api.depends('production_id.manual_quotation')
def _compute_manual_quotation(self):
for item in self:
item.manual_quotation = item.production_id.manual_quotation
manual_quotation = fields.Boolean('人工编程', default=False, compute=_compute_manual_quotation)
def _compute_working_users(self):
super()._compute_working_users()