Skip to Content
मेन्यू
This question has been flagged
1 Reply
2556 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
जून 24
1795
1
दिस॰ 23
1523
1
अप्रैल 23
1651
1
मार्च 23
2498
0
दिस॰ 22
2080