Hello guys,
I have this class (almost the same of ./addons/report/controllers/main.py) in my custom module :
class PTReportController(ReportController):
@route(['/report/download'], type='http', auth="user")
def report_download(self, data, token):
...........................
I use this method mainly to change the name of PDF reports.
For the actual user, how could I get the company name or the company ID in this method?
I would like to put is in the filename of the reports.
Thanks for your ideas