From 4c2dbe6ad0ae29bd73850d7ab140d4f7e2a66627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Fri, 5 Jun 2026 15:20:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_ai_agent/models/ai_report_template_config.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/yuthon_ai_agent/models/ai_report_template_config.py b/yuthon_ai_agent/models/ai_report_template_config.py index 2a81148da..6a8c9fd75 100644 --- a/yuthon_ai_agent/models/ai_report_template_config.py +++ b/yuthon_ai_agent/models/ai_report_template_config.py @@ -72,11 +72,6 @@ class AiReportTemplateColumn(models.Model): vals['label'] = field.field_description return super().write(vals) - @api.constrains('color_value', 'cell_color') - def _check_color_value(self): - for rec in self: - if rec.cell_color and not rec.color_value: - raise ValidationError('设置了显示颜色时,匹配值不能为空') class AiReportTemplateCard(models.Model):