I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?
Esta pergunta foi sinalizada
1
Responder
6192
Visualizações
Hi,
You can over ride the validate button in the inventory transfers(stock.picking) like this, Inherit the corresponding model, then call super like this,
class Picking(models.Model):
_inherit = "stock.picking"
def button_validate(self):
# do your necessary actions here
res = super(Picking, self).button_validate()
return res
Thanks
thanks a lot
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
|
1
mar. 22
|
6674 | ||
|
|
0
jul. 24
|
4655 | ||
|
|
1
mar. 24
|
4700 | ||
|
Out of Stock
Resolvido
|
|
4
fev. 24
|
8131 | |
|
|
1
jul. 23
|
5018 |