From e4982ee1842f969fb0fa351b844381af9acb7a08 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Sun, 19 Jan 2025 20:19:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_employee_approval/models/yuthon_transfer_approval.py | 2 +- .../views/yuthon_transfer_approval_views.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_hr_employee_approval/models/yuthon_transfer_approval.py b/yuthon_hr_employee_approval/models/yuthon_transfer_approval.py index 3c503f043..6e753902f 100644 --- a/yuthon_hr_employee_approval/models/yuthon_transfer_approval.py +++ b/yuthon_hr_employee_approval/models/yuthon_transfer_approval.py @@ -27,7 +27,7 @@ class YutransferApproval(models.Model): handover_person_id = fields.Many2one("hr.employee", string="工作接交人") notification_change_id = fields.Many2one("hr.employee", string="告知人员") handover_reason = fields.Text(string="移交原因") - notice_documents_ids = fields.Many2many('ir.attachment', string="附件") + notice_documents_id = fields.Many2one('ir.attachment', string="附件") reason = fields.Html(string="正文") is_issues = fields.Boolean(string='是否上会') related_issues_id = fields.Many2one('issue.library', string="关联议题") diff --git a/yuthon_hr_employee_approval/views/yuthon_transfer_approval_views.xml b/yuthon_hr_employee_approval/views/yuthon_transfer_approval_views.xml index 215d99ce4..9761f665c 100644 --- a/yuthon_hr_employee_approval/views/yuthon_transfer_approval_views.xml +++ b/yuthon_hr_employee_approval/views/yuthon_transfer_approval_views.xml @@ -28,7 +28,7 @@ - +