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
回覆
2573
瀏覽次數
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
|
1800 | ||
|
1
12月 23
|
1534 | ||
|
1
4月 23
|
1658 | ||
|
1
3月 23
|
2504 | ||
|
0
12月 22
|
2095 |