How to remove old entries in a module (propale or invoice) template selection

Hi,
I’m using Dolibarr 18.0.5. I recently moved this install to a new server and I’m now using Dolibarr in a docker container.
Everything works great. I used 18.0.5 in my docker compose file and imported the database of my original Dolibarr install. But if i now open an invoice in the invoice module I see the older templates. These tempates are not shown in the module invoice. How to remove the old template from the drop down in the invoice generation section?

and modules settings:

And I updated to the latest Dolibarr version :slight_smile:

Thanks in advance for pushing me in the right direction to solve my issue.

Frank

I wonder if they have been mentioned in the database?

could be a dictionary? found under top menu Home, left menu Setup, Dictionaries

1 Like

Hallo,
Zijn dit soms ODT templates? Misschien opnieuw importeren?

1 Like

Dank u voor uw reactie.
Nee dit is een kopie van het bestand pdf_sponge.modules.php met de aanpassing in de class naam en omschrijving. Deze kopie wordt dan apart weergegeven in de factuur module om aan/uit te zetten of op standaard te zetten. Maar als ik dit bestand verwijder dan verdwijnt deze wel in de module maar blijft deze beschikbaar als optie in de dropdown lijst bij het genereren van een factuur. (Zoals op de screenshot in de originele post) Ik had verwacht omdat de module deze ook niet meer ‘ziet’ deze ook automatisch in de dropdown lijst zou verdwijnen, maar dat is niet het geval.

Thank you for your response. No, this is not a dictonary but a copy of the file pdf_sponge.modules.php with the change in the class name and description. This copy is then displayed separately in the invoice module to turn on/off or set to default. But if I delete this file, it will disappear in the module but it will remain available as an option in the dropdown list when generating an invoice. (as shown in the screenshot in the original post) I expected that because the module no longer ‘sees’ it, it would also automatically disappear in the dropdown list, but that is not the case.

Dear jonbendtsen and Klaas,

I found a workaround. When selecting the ghost entry in the dropdownbox and select the button ‘Generate’ to generate the invoice with selected template an error message is displayed with the filename / class that is not found. Dolibarr searches in the /var/www/html/core/modules/facture/doc directory for templates. So i added the missing ghost entries in file format like the error message for example ‘pdf_templatename.modules.php’ and then the template shows up also in de module->invoice. Then i disabled the template.
When disabled I removed the file in /var/www/html/core/modules/facture/doc
Now the entries in the dropdown are also gone.

Thanks for helping me keep looking for a solution.

1 Like