I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?
La domanda è stata contrassegnata
1
Rispondi
6199
Visualizzazioni
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
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
|
1
mar 22
|
6680 | ||
|
|
0
lug 24
|
4659 | ||
|
|
1
mar 24
|
4703 | ||
|
Out of Stock
Risolto
|
|
4
feb 24
|
8135 | |
|
|
1
lug 23
|
5022 |