I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?
لقد تم الإبلاغ عن هذا السؤال
1
الرد
6193
أدوات العرض
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
|
6674 | ||
|
|
0
يوليو 24
|
4655 | ||
|
|
1
مارس 24
|
4700 | ||
|
Out of Stock
تم الحل
|
|
4
فبراير 24
|
8131 | |
|
|
1
يوليو 23
|
5018 |