Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 10/12/14, 9:40 PM|
|Seen: 1922 times|
|Last updated: 11/7/16, 5:07 PM|