The Cockeyed Miracle is a 1946 fantasy film about a ghost who, with the help of his father (also a ghost), stops his best friend from leaving his family penniless. The ghosts are played by Frank Morgan and Keenan Wynn, the villain by Cecil Kellaway. The film was based on the play But Not Goodbye by George Seaton. Wikipedia
(Two ghosts argue about the family finances) Sam Griggs: All you left Ma and me was a fifteen-dollar saloon bill. Ben Griggs: I'll thank you to treat you father with more respect.