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 @@ - +