Hi Everyone,
I'm trying to inherit odoo base function write_header which is defined inside BaseModel.
I've tried serveral examples but didn't helped, I also tried the following example which was succeded in earlier version of odoo.
from odoo.models import BaseModel
My TestClass(BaseModel)
def call_my_function(self):
print ("Triggered")
1/0
BaseModel.write_header = call_my_function
Any help is appriciated.
BR,
Vishnu