Odoo Help


Error using PARENT CLASS

Francisco Martínez
on 7/8/13, 5:07 PM 809 views

when i use

<field name="product_id" on_change="onchange_producto(product_id,  parent.partner_id)"/>

Return this error:

Error: Could not get field with name 'parent.partner_id' for onchange 'onchange_producto(product_id,  parent.partner_id)'

How must i use the "parent" class to get a partner_id field from a one2many parent??


Could you please explain better where do you want to use that? your view and object...

GH Mediacloud, Grover Menacho
on 7/8/13, 6:32 PM

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

0 follower(s)


Asked: 7/8/13, 5:07 PM
Seen: 809 times
Last updated: 3/16/15, 8:10 AM