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
- Contabilitate
- Inventar
- PoS
- Project
- MRP
Această întrebare a fost marcată
1
Răspunde
2561
Vizualizări
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-teRelated Posts | Răspunsuri | Vizualizări | Activitate | |
---|---|---|---|---|
|
2
iun. 24
|
1797 | ||
|
1
dec. 23
|
1526 | ||
|
1
apr. 23
|
1653 | ||
|
1
mar. 23
|
2501 | ||
|
0
dec. 22
|
2085 |