I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?
Denna fråga har flaggats
1
Besvara
6206
Vyer
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
Njuter du av diskussionen? Läs inte bara, delta också!
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
|
1
mars 22
|
6682 | ||
|
|
0
juli 24
|
4665 | ||
|
|
1
mars 24
|
4708 | ||
|
Out of Stock
Löst
|
|
4
feb. 24
|
8141 | |
|
|
1
juli 23
|
5025 |