Odoo Help

Welcome!

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.

0

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

By
Gopakumar N G
on 10/5/15, 8:45 AM 547 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?

1

Axel Mendoza

--Axel Mendoza--
10318
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

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

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)

Stats

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