添加功能
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user