From f88dd82933c7064afe5b031d232a013feb4c8b2d 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: Thu, 11 Dec 2025 11:42:59 +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/models/yuthon_property.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yuthon_property/models/yuthon_property.py b/yuthon_property/models/yuthon_property.py index d5bd46e87..5ea4b6d03 100644 --- a/yuthon_property/models/yuthon_property.py +++ b/yuthon_property/models/yuthon_property.py @@ -136,9 +136,9 @@ class YuthonProperty(models.Model): def update_is_new(self): - property_ids = self.env["yuthon.property"].browse( - self._context.get('active_ids', self._context.get('active_id'))) - # property_ids = self.env['yuthon.property'].search([]) + # property_ids = self.env["yuthon.property"].browse( + # self._context.get('active_ids', self._context.get('active_id'))) + property_ids = self.env['yuthon.property'].search([]) for property_id in property_ids: property_id.compute_is_new()