diff --git a/yuthon_ai_agent/models/ai_report_template_config.py b/yuthon_ai_agent/models/ai_report_template_config.py index 3863b9bbe..53d3cf69c 100644 --- a/yuthon_ai_agent/models/ai_report_template_config.py +++ b/yuthon_ai_agent/models/ai_report_template_config.py @@ -217,8 +217,8 @@ class AiReportTemplateChart(models.Model): ('polarArea', '玫瑰图'), ], string='图表类型', default='bar', required=True) label_field_id = fields.Many2one('ir.model.fields', string='分组字段', - domain="[('model_id', '=', model_id)]", required=True, ondelete='set null', - help='作为图表分类轴的字段') + domain="[('model_id', '=', model_id)]", ondelete='set null', + help='作为图表分类轴的字段(必填)') label_field_name = fields.Char('分组字段名', compute='_compute_label_field_name', store=True) value_field_id = fields.Many2one('ir.model.fields', string='数值字段',