From 5ec376e5b554b1f6b9046eebe899a012e53e6b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Mon, 13 Apr 2026 19:26:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- soong_workflow/models/soong_workflow_mixin.py | 2 +- soong_workflow/templates/soong_workflow_templates.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/soong_workflow/models/soong_workflow_mixin.py b/soong_workflow/models/soong_workflow_mixin.py index 3d9cc0bc5..79ab64c87 100644 --- a/soong_workflow/models/soong_workflow_mixin.py +++ b/soong_workflow/models/soong_workflow_mixin.py @@ -1548,7 +1548,7 @@ class SoongWorkflowLine(models.Model): model = fields.Char(string="Related Document Model", index=True) res_id = fields.Integer(string="Related Document ID", index=True) - workflow_record_id = fields.Many2one("soong.workflow.record", string="标题") + workflow_record_id = fields.Many2one("soong.workflow.record", string="标题", required=True) code = fields.Char(related="workflow_record_id.code", string="流水号") workflow_id = fields.Many2one(related="workflow_record_id.workflow_id", string="审批类型") company_id = fields.Many2one(related="workflow_record_id.company_id", string="公司") diff --git a/soong_workflow/templates/soong_workflow_templates.xml b/soong_workflow/templates/soong_workflow_templates.xml index 6a96ee73b..cf2f0ed07 100644 --- a/soong_workflow/templates/soong_workflow_templates.xml +++ b/soong_workflow/templates/soong_workflow_templates.xml @@ -35,7 +35,7 @@