A P45 is the official document you receive when you leave employment (fired or not), it isn’t slang for anything though you may be threatened with a P45
Its slang because P45 has nothing directly to do with being fired. It is a tax document related to changing employment.