From 350dee075550d60d9271c5fb23dcfaab239f507f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Tue, 26 May 2026 11:08:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_employee/models/yuthon_party_setting.py | 2 ++ yuthon_hr_employee/views/yuthon_party_setting_views.xml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/yuthon_hr_employee/models/yuthon_party_setting.py b/yuthon_hr_employee/models/yuthon_party_setting.py index 6c054e4e5..09a4f6f05 100644 --- a/yuthon_hr_employee/models/yuthon_party_setting.py +++ b/yuthon_hr_employee/models/yuthon_party_setting.py @@ -19,6 +19,8 @@ class YuthonPartySetting(models.Model): level = fields.Selection([('one', '一级'), ('two', '二级'), ('three', '三级')], string='层级') effective_date = fields.Date(string="生效日期", default=fields.Date.today) expiration_date = fields.Date(string="失效日期") + parent_id = fields.Many2one('yuthon.party.setting', string='上级单位', ondelete='set null') + document_ids = fields.Many2many('ir.attachment', string="附件") class YuthonSalaryGroup(models.Model): diff --git a/yuthon_hr_employee/views/yuthon_party_setting_views.xml b/yuthon_hr_employee/views/yuthon_party_setting_views.xml index 2bf714677..f2692b675 100644 --- a/yuthon_hr_employee/views/yuthon_party_setting_views.xml +++ b/yuthon_hr_employee/views/yuthon_party_setting_views.xml @@ -13,9 +13,11 @@ + +