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.


On Errors/Exceptions how to show automatically content of variables?

Gregor Heger
on 9/28/15, 12:40 PM 311 views

During testing my new developed modules, I often experience errors and the well known popup with its traceback opens up. Such as:

"if 'attendee_ids' in vals and vals['attendee_ids']:

IndexError: tuple index out of range"

Often, I still don't get why that error happened. It would be a LOT more helpful, if the contents of the variables are automatically shown in that popup. Because the content is not shown, I always have to execute the whole odoo environment in Debug mode, which costs a lot of time.

Is there some way to tell Python a more verbose error message with variable content?

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

1 follower(s)


Asked: 9/28/15, 12:40 PM
Seen: 311 times
Last updated: 9/28/15, 12:40 PM