I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?
Această întrebare a fost marcată
1
Răspunde
6198
Vizualizări
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
Îți place discuția? Nu doar citi, alătură-te!
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
|
1
mar. 22
|
6679 | ||
|
|
0
iul. 24
|
4658 | ||
|
|
1
mar. 24
|
4703 | ||
|
Out of Stock
Rezolvat
|
|
4
feb. 24
|
8134 | |
|
|
1
iul. 23
|
5022 |