This question has been flagged
1 Reply
3720 Views

Hi everyone, I have a problem, when i override then unlink method of class sale_order (this method is override also in sale_stock.py) and when i install the module i have my code work very well, but when i restart the server the method unlink of sale_stock.py is worked not the method override in my module ... any idea ? Thanks

Avatar
Discard
Best Answer

Try changing your own module to depend on sale_stock instead of sale, that should make your unlink() take precedence.

Avatar
Discard