Skip to Content
मेन्यू
This question has been flagged

Hi All,
I was trying to override one of Odoo's exception classes in my custom module. Here is what i tried.

exception.py
     

from odoo.exceptions import ValidationError, except_orm
from odoo.http import request
print('-------am here-------------')
class ValidationError(ValidationError):
​def __init__(self, msg):
​print('print ValidationError------',msg)
​super(ValidationError, self).__init__(msg)

But still, the validation error gets called from the base class, not my custom class.

Avatar
Discard
Related Posts Replies Views Activity
2
नव॰ 18
12259
2
दिस॰ 24
4425
1
नव॰ 24
3200
2
अप्रैल 23
18226
1
मार्च 23
2469