I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?
Diese Frage wurde gekennzeichnet
1
Antworten
6186
Ansichten
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
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren| Verknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
|---|---|---|---|---|
|
|
1
März 22
|
6664 | ||
|
|
0
Juli 24
|
4647 | ||
|
|
1
März 24
|
4696 | ||
|
Out of Stock
Gelöst
|
|
4
Feb. 24
|
8128 | |
|
|
1
Juli 23
|
5007 |