Skip to Content
Menu
This question has been flagged
1 Reply
3251 Views

Hi,

     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 :


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


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)"/>
    </tree>
</field>
Avatar
Discard
Best Answer

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

Avatar
Discard

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