I am trying to replace the validate button of the stock.picking model with a custom one since I need my custom button in addition to the function that I declare to also do the function that came by default of the validate button
I am trying this some help please
py file
def validate(self):
if not self.quien_elabora:
self.quien_elabora = str(\self.env.user.name)
self.env["stock.picking"].button_validate()