@@ -386,7 +386,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")
|
||||
@@ -417,7 +417,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') # 月租金
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user