I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?
Pertanyaan ini telah diberikan tanda
1
Balas
6181
Tampilan
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
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
1
Mar 22
|
6664 | ||
|
|
0
Jul 24
|
4647 | ||
|
|
1
Mar 24
|
4696 | ||
|
Out of Stock
Diselesaikan
|
|
4
Feb 24
|
8128 | |
|
|
1
Jul 23
|
5006 |