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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- 项目
- MRP
此问题已终结
1
回复
5190
查看
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
|
5448 | ||
|
|
0
7月 24
|
2940 | ||
|
|
1
3月 24
|
3110 | ||
|
Out of Stock
已解决
|
|
4
2月 24
|
6518 | |
|
|
1
7月 23
|
3691 |