Default PDF template is missing

Hi,

under Setup > Modules > Invoice > Settings (10.0.1) there should be several PDF templates for invoices. According to this there should be some (predefined) invoices document models. But on this new instance I can’t find anyone. There is only the header “PDF Invoice Templates” and the rest of the page is empty. See this screenshot:

I think something has to be configured. But what? Made a search, but can’t find something in the documentation/wiki.

Thanks!

Hi testing,
That happens when there are some pdf templates in the template folder /core/modules/facture/doc that have not been ‘registered’ ie have not followed these instructions:
https://wiki.dolibarr.org/index.php/Create_a_PDF_document_template
There is/are more than one template which has not followed the below:
Create your new template
Do not modify a template. Copy the file and rename it. For this example, we will call the new template ‘mycompanyblue’, based on the template ‘azur’:
Copy and paste file pdf_propale_azur.modules.php
Rename the copy as pdf_propale_mycompanyblue.modules.php
Edit and make the following changes in the code:

Rename 'Class pdf_propale_azur { ' to 'Class pdf_propale_mycompanyblue { '
Rename 'Function pdf_propale_azur ($db=0)' to 'Function pdf_propale_mycompanyblue ($db=0)' . This may not exist.
Rename constant $this-\>name to match your new template name.

For example for ‘azur’ template, change line ‘$this->name = “azur”;’ to ‘$this->name = “mycompanyblue”;’.

Save file. Now the template will be available in the list of models in Dolibarr.
Test this model (see previous section) before going further ...

Either delete unregistered templates or register for the full page to appear

Or Dolibarr can not access to the document directory
What the logs said ?

OK, I found the error. It’s my fault. There was a copy of a pdf template in the directory with the same template name and data (but not filename of course).

Now it works. Thanks for all your help!