139
139
now = time.strftime('%Y-%m-%d %H:%M:%S')
140
140
tenant_obj = self.pool.get('chricar.tenant')
141
141
tenant_ids = tenant_obj.search(cr,uid,['|',('to_date','=',False),('to_date','>',now),('name','<=',now),('top_id','=',p.id)])
143
143
for lease in tenant_obj.browse(cr, uid, tenant_ids,context):