Pepito y la lámpara maravillosa
Pepito The child misbehaves because his stepfather is scolding. Buy a sauceboat but when his cat rubs it a genie appears. The child understands that it is the magic lamp and asked all sorts of goodies and the solution of their tasks, but when he needs money stepfather tells of genius. The stepfather asked to topple his partner's plane. Pepito refuses and flees with the lamp and throws it into a river to avoid falling into its power. The stepfather drowns while trying to rescue him.
Starring Martín Ramos Arévalo, María Duval, Guillermo Orea, Raquel Olmedo, Xavier López, Maria Eugenia Da Silva, Patricia Borges, Eduardo MacGregor
Watch "Pepito y la lámpara maravillosa" from streaming services Tubi TV, Pluto TV released in 1972. It's a drama and family movie, and has a rating of 6.3 out of 10 from Imdb which is usually fine for this kind of movie, and is currently available to watch for free.