Odoo Help

0

Set Validation to check at least one process.

By
Dishan Madushanka
on 11/29/17, 6:17 AM 106 views

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

0
Annadurai
On 11/29/17, 8:59 AM

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 11/29/17, 6:17 AM
Seen: 106 times
Last updated: 12/7/17, 6:51 AM