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
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1
Balas
2570
Tampilan
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
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
2
Jun 24
|
1800 | ||
|
1
Des 23
|
1533 | ||
|
1
Apr 23
|
1656 | ||
Integrating paymongo payment acquirer in odoo 10.
Diselesaikan
|
|
1
Mar 23
|
2503 | |
|
0
Des 22
|
2091 |