From 7d86e6492db932f9a9b261df6618f860f0292e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E6=9C=AA=E5=A4=AE?= <2996985766@qq.com> Date: Thu, 25 Sep 2025 21:20:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E9=97=A8=E6=97=A0?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_property_approval/models/property_lease_contract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py index 02f69556c..a353652c5 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -265,7 +265,7 @@ class PropertyLeaseContract(models.Model): unique_titles.append(title) record.title_information = ', '.join(unique_titles) - @api.depends('lease_ids.address_id.admin_id') + @api.depends('lease_ids.address_id.admin_id', 'lease_ids.address_id.admin_id.department_id') def _compute_admin_id(self): for record in self: if record.lease_ids: