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:
- CRM
- e-Commerce
- 会計
- 在庫
- PoS
- Project
- MRP
この質問にフラグが付けられました
1
返信
2555
ビュー
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
|
1795 | ||
|
1
12月 23
|
1523 | ||
|
1
4月 23
|
1650 | ||
|
1
3月 23
|
2498 | ||
|
0
12月 22
|
2078 |