Skip to Content
Menu
This question has been flagged
1 Reply
2132 Views

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

Avatar
Discard
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
Discard
Related Posts Replies Views Activity
2
Jun 24
489
1
Dec 23
574
1
Apr 23
668
1
Mar 23
1250
0
Dec 22
1137