Skip to Content
Menú
This question has been flagged
1 Respondre
2581 Vistes

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

Avatar
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
2
de juny 24
1809
1
de des. 23
1535
1
d’abr. 23
1662
1
de març 23
2506
0
de des. 22
2097