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