Odoo Help


How to get header field value On on_change event of child record.

Zakir Husain
on 7/26/15, 2:58 PM 811 views


     I have a child table in that on change of one field i am raising a on_change event in that i am passing some header level information but i am not able to get that please can some one help me on that.

My Problem i could not find employee_id in my detail on_change event

My xml view is :

Header View :

    <field name="txn_num" class="oe_inline" readonly="1" /> 
    <field name="effectivedate" />
    <field name="employee_id"/>

My Details view is :

<field name="employee_line_ids" colspan="4 nolabel="1">
    <tree string="Lines" editable="bottom">
        <field name="salary_id"  on_change="get_employee_salary(employee_id, salary_id)"/>
Axel Mendoza
On 7/26/15, 7:48 PM

You may need to define the field employee_id in the tree definition too

You can pass using parent.employee_id but still you need to define in view as per Axel answer.

Solanki Shamji
on 7/27/15, 3:38 AM

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

2 follower(s)


Asked: 7/26/15, 2:58 PM
Seen: 811 times
Last updated: 8/3/15, 4:52 PM