From 1e9bcee6e49570cef792a4fadcc909fa5121ef22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Wed, 1 Apr 2026 14:51:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_employee/models/yuthon_medical_manage.py | 1 + yuthon_hr_employee/views/yuthon_medical_manage_views.xml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/yuthon_hr_employee/models/yuthon_medical_manage.py b/yuthon_hr_employee/models/yuthon_medical_manage.py index 1d8c6be84..531aa762b 100644 --- a/yuthon_hr_employee/models/yuthon_medical_manage.py +++ b/yuthon_hr_employee/models/yuthon_medical_manage.py @@ -227,6 +227,7 @@ class YuthonMedicalLine(models.Model): medical_fee = fields.Float(string="金额") enable = fields.Boolean(string="启用", default=True) remake = fields.Text(string="备注") + document_ids = fields.Many2many('ir.attachment', string="附件") @api.constrains('employee_id', 'medical_date') def _check_duplicate_medical_line(self): diff --git a/yuthon_hr_employee/views/yuthon_medical_manage_views.xml b/yuthon_hr_employee/views/yuthon_medical_manage_views.xml index 61b7e3b5c..46a614663 100644 --- a/yuthon_hr_employee/views/yuthon_medical_manage_views.xml +++ b/yuthon_hr_employee/views/yuthon_medical_manage_views.xml @@ -52,6 +52,9 @@ + + +