diff --git a/yuthon_property_approval/models/property_lease_renewal.py b/yuthon_property_approval/models/property_lease_renewal.py index 436905490..1bcf79d5b 100644 --- a/yuthon_property_approval/models/property_lease_renewal.py +++ b/yuthon_property_approval/models/property_lease_renewal.py @@ -128,10 +128,11 @@ class PropertyLeaseRenewal(models.Model): if receivable_id.void: receivable_id.receivable_id.write({ 'is_void': True, - 'void_date': fields.Datetime.now() + 'void_date': fields.Date.today() }) if receivable_id.reduction_amount: receivable_id.receivable_id.reduction_amount = receivable_id.reduction_amount + receivable_id.receivable_id.discount_date = fields.Date.today() @api.onchange('early_quitting_date', 'contract_id') def _onchange_early_quitting_date(self):