I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?
To pytanie dostało ostrzeżenie
1
Odpowiedz
6183
Widoki
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
1
mar 22
|
6664 | ||
|
|
0
lip 24
|
4647 | ||
|
|
1
mar 24
|
4696 | ||
|
Out of Stock
Rozwiązane
|
|
4
lut 24
|
8128 | |
|
|
1
lip 23
|
5006 |