跳至内容
菜单
此问题已终结

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.

形象
丢弃
相关帖文 回复 查看 活动
2
11月 18
12263
2
12月 24
4428
1
11月 24
3201
2
4月 23
18234
1
3月 23
2471