Odoo Help

0

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

By
Gregor Heger
on 9/28/15, 12:40 PM 485 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?

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.

Register

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

1 follower(s)

Stats

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