Se rendre au contenu
Menu
Cette question a été signalée

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
Ignorer
Publications associées Réponses Vues Activité
2
nov. 18
12329
2
déc. 24
4534
1
nov. 24
3300
2
avr. 23
18390
1
mars 23
2547