From bbc41526f2cb4726d2b496bde03ebec727bdee87 Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Thu, 19 Dec 2024 11:17:07 +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_contract/models/inherit_hr_contract.py | 1 + yuthon_contract/views/inherit_hr_contract_views.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/yuthon_contract/models/inherit_hr_contract.py b/yuthon_contract/models/inherit_hr_contract.py index 3152dda6e..41c384504 100644 --- a/yuthon_contract/models/inherit_hr_contract.py +++ b/yuthon_contract/models/inherit_hr_contract.py @@ -28,6 +28,7 @@ class HrContract(models.Model): address = fields.Text(related='party_id.address', string='通讯地址') contact = fields.Char(related='party_id.contact', string='联系人') phone = fields.Char(related='party_id.phone',string='电话') + documents_ids = fields.Many2many('ir.attachment', string="合同附件") @api.model def _default_date_of_entry(self): diff --git a/yuthon_contract/views/inherit_hr_contract_views.xml b/yuthon_contract/views/inherit_hr_contract_views.xml index 87718dbdc..89b1f2ee3 100644 --- a/yuthon_contract/views/inherit_hr_contract_views.xml +++ b/yuthon_contract/views/inherit_hr_contract_views.xml @@ -35,6 +35,7 @@ +