For example :
class customModel1(models.Model):
_inherit = 'sale.order'
def action_confirm(self):
# some code logic
return super(customModel1, self).action_confirm
class customModel2(models.Model):
_inherit = 'sale.order'
def action_confirm(self):
# some code logic
return super(customModel2, self).action_confirm
Now I want to inherit this in customModel2 and do changes but it should not call customModel1 action_confirm function. Instead it should call main sale module action_confirm function.
What is best odoo approach to do this?