Odoo Help


How to add Python code when printing a report using the print grey button?

Anabela Damas
on 1/20/14, 10:34 AM 1,404 views


I'm facing some issues because I add some python code to the print button from the form of invoices. Because when I print the first time I want to be print the report in a way, the second time I need to be different and all the next prints to be different. So I add some code to function called by the button print:

image description

But in tree view we can print the invoice by selecting the Invoice, and click in the Print grey button.

image description

With this print I don't know where to add the python code to differentiate the the first printing.

Someone knows if it is possible to add to this print some python code.


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

0 follower(s)


Asked: 1/20/14, 10:34 AM
Seen: 1404 times
Last updated: 3/16/15, 8:10 AM