I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?
Це запитання позначене
1
Відповісти
6214
Переглядів
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!
Реєстрація| Related Posts | Відповіді | Переглядів | Дія | |
|---|---|---|---|---|
|
|
1
бер. 22
|
6692 | ||
|
|
0
лип. 24
|
4677 | ||
|
|
1
бер. 24
|
4715 | ||
|
Out of Stock
Вирішено
|
|
4
лют. 24
|
8147 | |
|
|
1
лип. 23
|
5031 |