on_change field not valorized with xpath
Bug #1183869 reported by
Matteo Boscolo
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="parent_id" on_change=
</xpath>
the parent id field is not valorized inside the python code ..
I attached the module that implement the code above.
Regards,
Matteo
To post a comment you must log in.
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"> "on_change_ parent_ id(partner_ id,name, parent_ id)"/>
<field name="parent_id" on_change=
</xpath>
regards,
Matteo