PDF Template on Custom Module on 8.8 Version

Did you add new fields in the custom module?

You can add them via studio too.