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
Reply
6179
Views
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!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
1
Mar 22
|
6659 | ||
|
|
0
Jul 24
|
4640 | ||
|
|
1
Mar 24
|
4695 | ||
|
Out of Stock
Solved
|
|
4
Feb 24
|
8124 | |
|
|
1
Jul 23
|
5005 |