Is it necessary to add data tag when we use xpath in OpenERP 7.0 ? Invalid XML Architecture error is coming every time whenever we changes made on that record? Which is the proper way to use Xpath expression?
You're only using xpath on the contents of the arch tags. The root tags should always be /form, /tree, /search, /kanban, etc.
You could also make life a lot easier by just using two slashes then just entering the field you're looking for. Unless you're on a large, complex form with more than one instance of the same field listed, it should be fine. If that's the case, just add in a few extra bare minimum details to the xpath string to find it. So for example, putting "new_field" in place of "original_field":
<xpath expr="//field[@name='original_field']" position="replace"> <field name="new_field"/> </xpath>
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
|Asked: 8/24/13, 4:33 AM|
|Seen: 3503 times|
|Last updated: 3/16/15, 8:10 AM|