I want to do some stuff before validating a delivery order in the inventory module. How can I override the validate method?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
1
회신
4744
화면
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
|
5031 | ||
|
0
7월 24
|
2150 | ||
|
1
3월 24
|
2351 | ||
Out of Stock
해결 완료
|
|
4
2월 24
|
5518 | |
|
1
7월 23
|
3005 |