From 376585181ec56ef56f23fff906aa3bd93f0b7534 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Fri, 10 Jan 2025 09:32:14 +0800 Subject: [PATCH 1/3] =?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 --- .../models/property_lease_contract.py | 3 +++ .../views/property_lease_contract.xml | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py index fdc9b65f8..0a0a53684 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -149,6 +149,9 @@ class PropertyLeaseContract(models.Model): responsibility_book_id = fields.Many2one('ir.attachment', string="安全生产责任书") handover_time = fields.Date(string="交接日期") + # 数据库缺失字段 + state = fields.Char() + @api.depends('term_start_time') def _compute_term_start_month_day(self): for record in self: diff --git a/yuthon_property_approval/views/property_lease_contract.xml b/yuthon_property_approval/views/property_lease_contract.xml index aab02d0f0..9d8fe2968 100644 --- a/yuthon_property_approval/views/property_lease_contract.xml +++ b/yuthon_property_approval/views/property_lease_contract.xml @@ -490,7 +490,6 @@ -