Custom naming of Aeroo report filename in Odoo -


is there way report output aeroo named custom naming pattern? i.e., invoice: [year]_[invoice number]...

@raffaele, i'd recommend taking here , this forum post.

you'll need use basic python logic in report_custom_filename module create file name need according requirements.

using following example can create output filename sales order/quotation:

${(object.name or '').replace('/','_')}_${object.state == 'draft' , 'draft' or '' +'.xls'} 

that looks this:

so039_.xls

you can add field document/report you're printing out adding section, example:

${(object.client_order_ref or '').replace('/','_')}_ 

this add field client_order_ref in front of document name this:

[here's client order reference]_so039.xls 

have @ fields available in model you're trying information (eg. in case sale.order) , think you'll find need there.

i have still not figured out how add date/timestamp requesting (eg. year), else may able offer advice on this.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -