How to capture the one2many field value from inside the function?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
2565
查看
eg: partner_val = fields.One2many('res.partner','partner_id',string="partner")
in method:
@api.multi
def test_meth(self):
for partner in self:
print (partner.partner_val.name)
This will print partner's name avaliable in res.partner
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
2
6月 24
|
1798 | ||
|
1
12月 23
|
1528 | ||
|
1
4月 23
|
1655 | ||
|
1
3月 23
|
2502 | ||
|
0
12月 22
|
2087 |