Hello guys.. I have tried using 'attachment' field to give name for pdf file with Qweb XML. but it do not work. I have seen an example from account invoice : attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/','')+'.pdf')". When I generate the invoice to pdf, it is still using 'account.report_invoice.pdf' for pdf file name, where it came from 'name' or 'report_name' of report object field.
Thank u guys for your best help..
Odoo is stupid in this area. Attachment and his name is not the same as the name of the invoice by clicking on "Print".
If you install module "Document Management System" you get an extra button "Attachment(s)", on invoice view, where, on list, you see right and expected attachment name. An attachment is also a pdf file.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 10/12/14, 9:40 PM|
|Seen: 1266 times|
|Last updated: 11/7/16, 5:07 PM|