on_change field not valorized with xpath

Bug #1183869 reported by Matteo Boscolo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
A SYLEAM Component - OpenObject Library
New
Undecided
Unassigned

Bug Description

I implemented e little modification at the contract to allows creation of sub contract and the related name.
For this I implemented the on_change event on the parent_id filed.

this is the xml xpath that change the interface ..
<xpath expr="//field[@name='code']" position="after">
    <field name="parent_id" on_change="on_change_parent_id(partner_id,name,parent_id)"/>
</xpath>
the parent id field is not valorized inside the python code ..

I attached the module that implement the code above.

Regards,
Matteo

Revision history for this message
Matteo Boscolo (matteo-boscolo-omniasolutions) wrote :
Revision history for this message
Matteo Boscolo (matteo-boscolo-omniasolutions) wrote :

I found the solution at the problem,
There was already a view that define the parent_id,
I overwrite the field with replace and all works well ...

<xpath expr="//field[@name='code']" position="replace">
    <field name="parent_id" on_change="on_change_parent_id(partner_id,name,parent_id)"/>
</xpath>

regards,
Matteo

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.