Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2560 Prikazi

How to capture the one2many field value from inside the function?

Avatar
Opusti
Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
jun. 24
1796
1
dec. 23
1526
1
apr. 23
1653
1
mar. 23
2501
0
dec. 22
2083