コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4519 ビュー

I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?

アバター
破棄
最善の回答

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
3月 22
4875
0
7月 24
1869
1
3月 24
2152
Out of Stock 解決済
4
2月 24
5182
1
7月 23
2805