Yes it's true or at least partially true that India has no toilets.
About 50 percent of people and houses in India have no toilets in their homes or Indoor plumbing.
In the really poor parts of India people will poop and pee on the streets out outside their home as they have no toilet.
The main few reasons that most Indians have no toilets in their homes is that they are poor and have not got the money to pay for toilets so they do open defecation.
It's how even people in the USA have relieved themselves before the advent of indoor plumbing or toilets.