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?

on 11/2/13, 11:03 AM 852 views


please How to print two different invoice layouts ? when i choose the edit botton i want to see tow possibles layouts (invoice1, invoice2 for exemple)


On 11/4/13, 2:47 AM

You could even achieve that with one report. Let's take a webkit report example (same princple can be aplied to rml reports): If you need two different layouts:

Add a boolean field for the object, and then in report, make a condition:

if object.my_boolean:

If two options is not enough, you can use selection field, and apply conditions for each selection;

if object.selection == 'this':
elif object.selection == 'that':
elif object.selection == 'something else':

You can actually put under such condition anything you like- not only tags, but html elements also.

Gregoire Huet
On 11/2/13, 5:52 PM


It's possible to have multiple reports for one model. You can develop one report for every layout you need.


thank you for yor reponse,can you please explane this solution?

on 11/3/13, 2:37 AM

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

0 follower(s)


Asked: 11/2/13, 11:03 AM
Seen: 852 times
Last updated: 3/16/15, 8:10 AM