Hi,
On 03.08.2018 09:53, JC Michel wrote:
> Hi,
>
>
> Is it possible to have reports named with the number ?
> For instance, Sale_2 instead of Sale or 2018-08-03_Invoice_1234.pdf
> instead of Invoice.
> Maybe would it be possible with the <meta:user-defined
> meta:name="xxxx"/> of fodt format ?
the report_name is part of the return value of Report.execute()[1].
It is possible to modify the report name at this place.
For the future i would like to have some refactoring at this point with
a method _get_report_name() that would allow to add custom solutions for
computing the report name at this point.
Best,
Korbinian
[1]
http://hg.tryton.org/trytond/file/tip/trytond/report/report.py#l185