PDF from new module is empty

Hello!
This is my first time posting in this forum

I want to ask a question, I created a new module in my Dolibarr and made an object, now I created a register for this object but it doesnt show the “Generate” button for the PDF templates.
Also, which are the steps to create a PDF? Because the PDF from the register is empty, only showing data for the enterprise and a “-1” in the info data.

Thanks in advance!!