On 11 May 01:54, Paul Leverett wrote:
> In Invoices, when an Invoice is in draft the report filename is 
> Invoice.pdf, but when it is Posted the filename gets the Invoice Number 
> appended - e.g. "Invoice - INV2001-052014.pdf"
> 
> This behaviour is very very useful, but does not seem to do the same on 
> Sales. All sales reports are called sale.pdf even when a system-generated 
> Reference is available.
> Is there any way I can automatically append the Sale Reference to the 
> report filename in a similar manner to Purchase? 
> Is this possible in configuration, or would it need a development of the 
> module to achieve?

It is done here:
http://hg.tryton.org/modules/account_invoice/file/cf110d2cfed7/invoice.py#l2411
I think your proposal to have the same for sale and purchase should be
welcomed.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgpjW30sG45T8.pgp
Description: PGP signature

Reply via email to