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 have two invoice layouts: account_print_invoice.rml and account_print_invoice_new.rml I want to add second print action to Print button on invoice form. I duplicated invoice records in Reports and Action Bindings. Reports / Name: Invoice New Reports / Report File: account/report/account_print_invoice_new.rml Action Binding / Name: Invoice New Action Binding / Action Reference: ir.actions.report.xml,335 - which links to Reports / Invoice New All the rest of values are the same as default. Action Binding / Qualifier: client_print_multi
Now Invoice / Print button has two action: Invoice and Invoice New, which is correct. THE PROBLEM is both print the same layout account_print_invoice_new.rml. I can not print the default account_print_invoice.rml. Why???
I changed Report / Report File in Invoice New to default layout: account/report/account_print_invoice.rml and both print actions use the same DEFAULT layout. Look like OpenERP takes only one last print action from ir.actions.report.xml with report_name = 'account.invoice'.
What's wrong? Is it a BUG???
I created a step by step guide with screenshots on how to do this using Odoo v8. I struggled with this for a long time (being new to Odoo myself) and I hope this guide will help save others the same frustration I went through.
Here's the guide to Create Multiple Invoice Templates in Odoo v8:
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: 7/30/13, 2:22 PM|
|Seen: 3353 times|
|Last updated: 3/16/15, 8:10 AM|