添加功能

This commit is contained in:
zhou
2025-01-02 19:10:47 +08:00
parent b578baf74a
commit a905cb481f
@@ -482,7 +482,8 @@ class PropertyLeaseContract(models.Model):
}
def action_relevance_property(self):
for record in self:
contract_ids = self.env["property.lease.contract"].browse(self._context.get('active_ids', self._context.get('active_id')))
for record in contract_ids:
property_id = self.env['yuthon.property'].search([('name', '=', record.name)])
if property_id:
management_list = []