From 164f2a04ece03b0ccc415953d4e4bce80ee6bbd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Wed, 19 Nov 2025 18:20: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 --- yuthon_property_approval/models/property_lease_renewal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):