Odoo Help


Print the report based on a condition from 'Print' in form and list view.

Gopakumar N G
on 10/5/15, 8:45 AM 1,196 views

I have created two RML reports in event.registration model say A and B. Now I have to print one of these reports based on a condition from the 'Print' inside form and list view(If condition is true print A else print B). This can be done easily by using a button inside the form view and to check the condition, but I want it to be printed from the list view also. So it must be printed from the 'Print' button in the list view and I don't want to show both the report names there, only something like this 'Print Registration'. On clicking the 'Print Registration'  I need to check the condition and print the desired report. How this can be done?

Axel Mendoza
On 10/5/15, 11:55 AM

In the list you can have records that match the two conditions at least that you put a domain in the action of the view to match only one condition. Also you could add a button to the record in the tree that can do the same of the button in the form and it's specific of the record

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.


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)


Asked: 10/5/15, 8:45 AM
Seen: 1196 times
Last updated: 10/5/15, 11:57 AM