Hello,
I found a guy had solved the same problem here:
\http://stackoverflow.com/questions/32859723/odoo-how-to-override-original-function
So I imitated to override a method of 'stock.inventory' class:
class StockInventoryInherit(models.Model):
_inherit = 'stock.inventory'
def _default_stock_location(self, cr, uid, context=None):
logger.info("_____________-------------------_____________")
logger.info("_____________-------------------_____________")
logger.info("_____________-------------------_____________")
return 19
But nothing changes.
What am I doing wrong?
Please help.
Thank you.
---
It seems to be that private methods (which start with underscore _) can not be override. I tested with a public method and it worked. But I want to override that private one. Any idea? thank you.