From 1113ff93fec586c97efbad89db5b2509b24e4234 Mon Sep 17 00:00:00 2001 From: ljmwkx <1340053001@qq.com> Date: Thu, 16 Jan 2025 20:52:53 +0800 Subject: [PATCH] 1 --- yuthon_property_approval/models/property_lease_contract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py index 9e2c2fe70..c2e9c6f79 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -820,7 +820,7 @@ class PropertyLeaseContract(models.Model): } } - @api.onchange("term_start_time", "term_end_time", + @api.onchange("term_start_time", "term_end_time", "rent", "increments_every_few_years", "unit_price", "first_years_begin", "increment_method", "increment_value", "rent_free_period_month", "rent_free_period_days", "total_area") @@ -851,7 +851,7 @@ class PropertyLeaseContract(models.Model): unit_price = self.unit_price # 单价 unit_price = float_round(unit_price, precision_digits=2, rounding_method='HALF-UP') - monthly_amount = self.total_area * unit_price + monthly_amount = self.rent monthly_amount = float_round(monthly_amount, precision_digits=0, rounding_method='HALF-UP') # 月租金