Custom PDF Templates are not being used

Hello everyone!
I have created three PDF Templates for testing purposes - one for each module: Quotes, Invoices and Report. I did it all ā€œby the bookā€ - just followed the steps described in Userā€™s Manual. Plain and simple.

If I go to ā€œPrint as PDFā€, the downloaded document is correct by all means except it doesnā€™t look like my custom made template. It looks like none of the custom templates is being used and there is no step for choosing desired template. I have tried with log-out/log-in, permissions repair, Quick repair and rebuild, deleted browserā€™s cache but nothing helped.

Iā€™m on SuiteCRM 7.9.9.
I had a few minor glitches so far but they were mostly permissions related. This is the first time Iā€™m facing something like this. Is it a bug I should report? How can I detect it to be sure?

Thank you all in advance and best regards!
vinkobak

Hello again!
Out of lack of answers I came to solution which may point to a bugā€¦ As mentioned in previous post, I had three custom templates - one for quotes, one for invoices and one for reports. Clicking on Print to PDF gave me no chooser window to pick desired custom template. I thought itā€™s because I had only one template and that template would be used to produce PDF. But no, that was not the case. PDF was produced with, presumably, default PDF template for Quotes.
After creating another custom template for quotes, clicking on Print to PDF opened floating window with two custom templates to choose from!
Should I report it as a bug?
Best regards!
vinkobak

Another update on this topicā€¦
It seems above mentioned ā€œsolutionā€ does not work with Reports. I have created two report templates but canā€™t reach template chooser. When a report is created clicking on Download PDF immediately downloads report created with, again presumably, default template.
Still trying to figure out how to get to chooser window or some other way to use my custom report template. Any suggestion is welcome!
Regards,
vinkobak

Hereā€™s what I have learned so far:
Userā€™s Manual clearly states itā€™s possible to connect extra modules with PDF Template module (in ā€˜Typeā€™ dropdown).

My ā€˜Item Nameā€™ is [AOR_Reports] and, unless the module directory is named differently, this should work. Unfortunately it doesnā€™t. If I go on Download PDF in Reports -> Actions, download starts immediately and I canā€™t choose desired template.
Also, in PDF Template Edit view, ā€˜Insert Fieldā€™ canā€™t be populated.

I suspect there is a problem with module name in ā€˜Item Nameā€™ or, for some reason, there is no connection between ā€˜Item Nameā€™ and desired module.

I hope after releasing 7.10 some developer would stumble upon this and maybe offer some way out. :slight_smile:

Best regards,
vinkobak

1 Like

[quote=ā€œvinkobakā€ post=60425]Hereā€™s what I have learned so far:
Userā€™s Manual clearly states itā€™s possible to connect extra modules with PDF Template module (in ā€˜Typeā€™ dropdown).

I have made a custom PDF template for my custom module, you give an idea of how to resolve this ā€œproblemā€, I have followed your steps and for the item name I wrote the name of the directory (i have connected to my site using FTP and look inside the modules directory, then found the name of the custom module), I have made these steps and voilĆ , all my fields appeared in Insert Fields dropdown like magic.
Hope this helps