Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
2549 Visninger

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

Avatar
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
jun. 24
1794
1
dec. 23
1523
1
apr. 23
1649
1
mar. 23
2497
0
dec. 22
2077