From 460a9fa058f3404f9ba0ae697ab1a3561c7495e6 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Tue, 31 Dec 2024 17:43:56 +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 --- .../models/property_lease_contract.py | 6 ++- .../views/property_lease_contract.xml | 53 +++++++++++-------- 2 files changed, 36 insertions(+), 23 deletions(-) diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py index 53f7491bf..e8b610075 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -75,8 +75,12 @@ class PropertyLeaseContract(models.Model): breach_time = fields.Date(string="违约计算时点") percentage_liquidated_damages = fields.Many2one('yuthon.penalty.setting', string="违约金比例") - date_of_payment = fields.Date(string="每月支付日期") + date_payment_moth = fields.Integer(string="每月支付日期") + date_payment_day = fields.Integer(string="每日支付日期") + first_pay = fields.Date(string="首次付款日") unit_price = fields.Float(string="单价") + is_deposit = fields.Boolean(string="押金") + is_performance_bonds = fields.Boolean(string="履约保证金") deposit = fields.Float(string="押金") performance_bonds = fields.Float(string="履约保证金") performance_bonds_write = fields.Char(string="履约保证金大写") diff --git a/yuthon_property_approval/views/property_lease_contract.xml b/yuthon_property_approval/views/property_lease_contract.xml index afbaab67f..79bc120a7 100644 --- a/yuthon_property_approval/views/property_lease_contract.xml +++ b/yuthon_property_approval/views/property_lease_contract.xml @@ -115,43 +115,35 @@ - + + + + + + + + + + +