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.
I'm new to Odoo but have robust programming skills. i would like to add a module to allow users to optionally associate an invoice template to their customers and use the associated invoice template as a replacement to the default invoice model.
To add a field on the customer form to record the template to use, I know how to do it. However I have no idea about how to catch the Print > Invoice event and exploit the defined value in the field and either apply a custom template or use the regular default one.
Could you please help me with this?
the printed standard xml templates from odoo are located in settings -> reports -> reports
there you have for example the invoice template.
There you click on Qweb and then you have the xml of this printed report.
The report_invoice_document is the main file.
For more information check the odoo documentations: https://www.odoo.com/documentation/10.0/reference/reports.html
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: 18/09/17 09:06|
|Seen: 970 times|
|Last updated: 18/09/17 11:37|