Custom filename for report

I’m looking for a way to custom the report filename sended by email for sales.
The field “record name”, allow me to set a string, but can I use variables template?
I’ve tried something like Vente-${company.rec_name}-${sale.sale_date} without success.

Error Fault: "company" not defined suggest this is possible as tryton is looking for a variable, but I can’t found a list of usable variables (or maybe this is not a usable feature)

Yes, but you should use the record keyword as base for the record.

You should use: Vente-${record.company.rec_name}-${record.sale_date}

Awesome feature thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.