Odoo Help


How to detect debug mode in python side?

on 7/15/13, 8:52 AM 3,431 views

I wanna detect debug mode in python side of openerp. How to to that?

On 7/15/13, 9:16 AM

To enable OpenERP server debug mode, add flag --debug to start parameters. For example:

$ openerp-server -c .your_config --debug

To read more about python and OpenERP debugging, visit these links:

Dan Raoelinarivo
On 1/14/17, 10:49 AM

This method returns True if debug mode is on, False otherwise :

from odoo.http import request
from odoo import models, api
class SomeClass(models.Model):
     _name = "some.class"
     def debug_mode(self):
          return request.debug

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: 7/15/13, 8:52 AM
Seen: 3431 times
Last updated: 1/14/17, 10:49 AM