diff --git a/yuthon_property_approval/models/property_management.py b/yuthon_property_approval/models/property_management.py
index 5563fefbf..b07fb9176 100644
--- a/yuthon_property_approval/models/property_management.py
+++ b/yuthon_property_approval/models/property_management.py
@@ -115,6 +115,13 @@ class PropertyManagement(models.Model):
prev_info.end_date = record.start_time - timedelta(days=1)
# 创建新记录
self.env['manage.information.line'].create(info_line_vals)
+ contract = self.env['property.lease.contract.line'].search(
+ [('address_id', '=', line.property_id.id)],
+ limit=1
+ )
+ if contract:
+ lease_id = contract.lease_id
+ lease_id.write({'admin_id': record.admin_id_all.id})
record.write({'is_line': True})
def put_property_management(self):
diff --git a/yuthon_salary/views/inherit_hr_payslip_views.xml b/yuthon_salary/views/inherit_hr_payslip_views.xml
index 2385b88da..8fda75ccb 100644
--- a/yuthon_salary/views/inherit_hr_payslip_views.xml
+++ b/yuthon_salary/views/inherit_hr_payslip_views.xml
@@ -47,7 +47,7 @@
-
+