From 87860a8c25c89958fc37d2dd9d0918ca082d0f44 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 25 Aug 2025 17:35:48 +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_property/models/yuthon_property.py | 2 +- .../views/property_lease_contract.xml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/yuthon_property/models/yuthon_property.py b/yuthon_property/models/yuthon_property.py index 433e59b8d..8e176fa9a 100644 --- a/yuthon_property/models/yuthon_property.py +++ b/yuthon_property/models/yuthon_property.py @@ -291,7 +291,7 @@ class YuthonProperty(models.Model): manage_id = False property_list.append([0, 0, {'property_id': record.id, 'precinct_id': record.precinct_id.id, - 'purpose_id': manage_id.purpose_id.id, + 'purpose_id': manage_id.purpose_id.id if manage_id else None, 'information_line_id': manage_id.id}]) return { 'name': '提交物业变更', diff --git a/yuthon_property_approval/views/property_lease_contract.xml b/yuthon_property_approval/views/property_lease_contract.xml index 7d2045e76..563e0dd48 100644 --- a/yuthon_property_approval/views/property_lease_contract.xml +++ b/yuthon_property_approval/views/property_lease_contract.xml @@ -70,15 +70,15 @@ - + - - - - + + + +