This commit is contained in:
李鹏宇
2026-06-10 17:07:15 +08:00
parent 12d64ba71a
commit 6cc892cc66
@@ -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='数值字段',