I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?
Bu soru işaretlendi
1
Cevapla
6203
Görünümler
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
Tartışma hoşunuza mı gidiyor? Sadece okumakla kalmayın, katılın!
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
|
1
Mar 22
|
6680 | ||
|
|
0
Tem 24
|
4664 | ||
|
|
1
Mar 24
|
4707 | ||
|
Out of Stock
Çözüldü
|
|
4
Şub 24
|
8139 | |
|
|
1
Tem 23
|
5023 |