In Base model method are defined using decorator.
I have tried to override the base model with this solution but it coudln't work.
from openerp.models import BaseModel
class custom_class(BaseModel)
@api.multi
def method_name
@ I have tried with applyting decorator and without decorator but my override function is not called yet. Any suggestion will be appreciated.
Why are you inheriting from BaseModel (i.e. class custom_class(BaseModel)). I did not found any use of BaseModel in this way in the addons, but maybe I'm missing something.
I want to apply some global changes on odoo8 so for that I want to override the core methods or the main method. do you have any idea?
Duplicate question maybe? https://www.odoo.com/forum/help-1/question/how-to-override-basemodel-or-model-class-of-orm-py-36517