Odoo Help


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

Zakir Husain
on 7/26/15, 2:58 PM 871 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

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

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: 871 times
Last updated: 8/3/15, 4:52 PM