Odoo Help


This community 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.


How to print two different invoice layouts?

Dariusz Kubiak
on 7/30/13, 2:22 PM 3,117 views

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???

Same problem ! waiting for answers.

on 8/20/13, 3:58 AM
OpenERP Vietnam
On 9/12/14, 5:35 AM

You go to Settings - Technical - Actions - Reports.

Find the report that you modifined. Then you delete all thing at field Save as Attachment Prefix and uncheck at field Reload from Attachment. The new report of you will be affected.

David Birchmier
On 12/27/14, 8:55 PM

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:

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 7/30/13, 2:22 PM
Seen: 3117 times
Last updated: 3/16/15, 8:10 AM