Odd-frequency triplet pairing in mixed-parity superconductors