Odoo Help


This community 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.


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

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


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