I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?
This question has been flagged
1
Odpovědět
6180
Zobrazení
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit se| Related Posts | Odpovědi | Zobrazení | Aktivita | |
|---|---|---|---|---|
|
|
1
bře 22
|
6664 | ||
|
|
0
čvc 24
|
4647 | ||
|
|
1
bře 24
|
4696 | ||
|
Out of Stock
Vyřešeno
|
|
4
úno 24
|
8128 | |
|
|
1
čvc 23
|
5006 |