Odoo Help

3

How to print two different invoice layouts?

By
Dariusz Kubiak
on 7/30/13, 2:22 PM 3,843 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.

phoebe
on 8/20/13, 3:58 AM
1
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:
http://www.askmpa.com/creating-multiple-invoice-templates-in-odoo-v8/

0
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.

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

Question tools

2 follower(s)

Stats

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