Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2570 Tampilan

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

Avatar
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Jun 24
1800
1
Des 23
1533
1
Apr 23
1656
1
Mar 23
2503
0
Des 22
2091