1.修复及优化质检接口2.质量检查新增检测报告和检测结果2个字段
This commit is contained in:
@@ -263,6 +263,8 @@ class QualityCheck(models.Model):
|
||||
picture = fields.Binary('Picture', attachment=True)
|
||||
additional_note = fields.Text(
|
||||
'Additional Note', help="Additional remarks concerning this check.")
|
||||
report_result = fields.Char('检测结果', readonly=True)
|
||||
report_pdf = fields.Binary('检测报告', readonly=True)
|
||||
|
||||
def _compute_alert_count(self):
|
||||
alert_data = self.env['quality.alert'].read_group([('check_id', 'in', self.ids)], ['check_id'], ['check_id'])
|
||||
@@ -408,3 +410,5 @@ class QualityAlert(models.Model):
|
||||
domain = [('team_ids', '=', False)]
|
||||
stage_ids = stages._search(domain, order=order, access_rights_uid=SUPERUSER_ID)
|
||||
return stages.browse(stage_ids)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user