Odoo Help


Set Validation to check at least one process.

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

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


On 11/29/17, 8:59 AM

eg: partner_val = fields.One2many('res.partner','partner_id',string="partner")

in method:


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.


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)


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