I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?
Этот вопрос был отмечен
1
Ответить
6213
Представления
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
Не оставайтесь в стороне – присоединяйтесь к обсуждению!
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
|
1
мар. 22
|
6692 | ||
|
|
0
июл. 24
|
4677 | ||
|
|
1
мар. 24
|
4714 | ||
|
Out of Stock
Решено
|
|
4
февр. 24
|
8146 | |
|
|
1
июл. 23
|
5031 |