AB
02/18/2020, 6:42 AMbattk
02/18/2020, 7:05 AMbattk
02/18/2020, 7:05 AMAB
02/18/2020, 7:12 AMbattk
02/18/2020, 7:13 AMbattk
02/18/2020, 7:13 AMbattk
02/18/2020, 7:13 AMbattk
02/18/2020, 7:14 AMAB
02/18/2020, 7:19 AMAB
02/18/2020, 7:21 AMbattk
02/18/2020, 7:23 AMAB
02/18/2020, 7:24 AMbattk
02/18/2020, 7:25 AMAB
02/18/2020, 7:26 AMmichoel
02/18/2020, 7:47 AMsuitedev
02/18/2020, 4:24 PMrender.transaction()
to get the PDF output.
Otherwise, I would update the country record to have a reference to the template file, so you can ensure it's always related on the record, and not sitting hard-coded in a script.