Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Using Odoo 9 Community Version.
In the inherited view am trying to locate a page using its string attribute however I ended up facing the below error.
"view inheritance may not use attribute 'string' as a selector"
Upon close search I have realized, in Odoo 9, xpath expression doesn't seem to search based on string, then what is the alternative way to achieve the same.
Searching on the string attribute has been deprecated in Odoo 9, it was available in Odoo 8 though.
There are quite some alternatives to this. The first is to xpath by the field name:
<xpath expr="//field[@name='fieldName']" position="replace">
The second option is to do this by index, which is slightly worse since it has a bigger chance that the index of the item will change on some point (if you install / de-install modules):
<xpath expr="//group" position="replace">
The above will get the second group that is in the current view (index starts counting from 0)
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/6/16, 2:20 AM|
|Seen: 676 times|
|Last updated: 5/6/16, 3:38 AM|