添加功能

This commit is contained in:
zhou
2025-06-28 21:37:33 +08:00
parent f36c40e48e
commit 2e10096259
@@ -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,