From 2e10096259dbe5af22cc4c7dba7bf1d851299bc2 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Sat, 28 Jun 2025 21:37:33 +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/property_evaluation_plan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_property/models/property_evaluation_plan.py b/yuthon_property/models/property_evaluation_plan.py index 843719334..76bfc6913 100644 --- a/yuthon_property/models/property_evaluation_plan.py +++ b/yuthon_property/models/property_evaluation_plan.py @@ -72,7 +72,7 @@ class PropertyEvaluationPlan(models.Model): property_evaluation_ids = self.env["property.evaluation.plan"].browse( self._context.get('active_ids', self._context.get('active_id'))) for record in property_evaluation_ids: - property_id = self.sudo().env['yuthon.property'].search([('name', 'in', record.name)]) + property_id = self.sudo().env['yuthon.property'].search([('name', '=', record.name)]) if property_id: record.write({ 'owner_id': property_id.owner_id,