From 45623acbb6537e17b68a583f8bd89e1123450fe3 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: Fri, 12 Jun 2026 17:33: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/models/inherit_yuthon_property.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/yuthon_property_approval/models/inherit_yuthon_property.py b/yuthon_property_approval/models/inherit_yuthon_property.py index f3f11f587..4c2138dfa 100644 --- a/yuthon_property_approval/models/inherit_yuthon_property.py +++ b/yuthon_property_approval/models/inherit_yuthon_property.py @@ -680,7 +680,10 @@ class PropertyAccountsReceivable(models.Model): charging_range = fields.Text(string="收费区间") def action_fix(self): - for record in self: + record_ids = self.env["property.accounts.receivable"].browse( + self._context.get("active_ids", self._context.get("active_id")) + ) + for record in record_ids: if record.management_type_id.name == '违约金': if record.due_date: rent_id = self.env['property.accounts.receivable'].search([