Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Nov 18
12237
2
Des 24
4413
1
Nov 24
3194
2
Apr 23
18214
1
Mar 23
2457