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