Skip to Content
Menú
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
Descartar
Related Posts Respostes Vistes Activitat
2
de nov. 18
12441
2
de des. 24
4647
1
de nov. 24
3439
2
d’abr. 23
18619
1
de març 23
2637