I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?
Tämä kysymys on merkitty
1
Vastaa
6202
Näkymät
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
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
|
|
1
maalisk. 22
|
6680 | ||
|
|
0
heinäk. 24
|
4660 | ||
|
|
1
maalisk. 24
|
4703 | ||
|
Out of Stock
Ratkaistu
|
|
4
helmik. 24
|
8135 | |
|
|
1
heinäk. 23
|
5022 |