From 846b03c7d83440cc70d01be76fa87dd796ecd885 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: Tue, 14 Apr 2026 15:32:35 +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/wizard/property_rental_wizard.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yuthon_property_approval/wizard/property_rental_wizard.py b/yuthon_property_approval/wizard/property_rental_wizard.py index 033118b33..f4e5f5f6c 100644 --- a/yuthon_property_approval/wizard/property_rental_wizard.py +++ b/yuthon_property_approval/wizard/property_rental_wizard.py @@ -49,6 +49,7 @@ class PropertyRentalWizard(models.Model): ], limit=1) if existing_receivable or record.actual_end_time <= start_date: + return receivable = self.env['property.accounts.receivable'].search([ @@ -75,6 +76,9 @@ class PropertyRentalWizard(models.Model): "month": self.select_month, }) else: + if rent_id.is_push and not existing_receivable: + rent_id.is_push = False + rent_id.write({ "contract_id": record.id, "due_date": start_date,