-
-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xpath using "string" attribute #1
Comments
Hi @badbole, Thanks a lot for reporting this! 👍 Greetz |
I just came into it while migrating some custom modules to v9... |
I've finally had the time to test this and you're correct. Xpath string expressions have been fully removed in V9! (I added a note on my sample here: https://github.com/Yenthe666/Odoo_Samples/blob/master/xpath_expressions/templates.xml) |
Told you so :) Good to know i was right :) |
this is the solution kid`s xpath expr="//page[2]" position = "attributes"> |
is xpathing by number safe? every time I see that i think "who tells you it's always going to be second?" I prefer name, looks safer. |
@gfcapalbo you should always go for the name if you can, it is by far better. Every once in a blue moon there is no name and then you'll need to specify an index though, just don't do it if you don't have to. Edit: if you make an xpath with an index and the index is out of range you'll get one ugly error. |
for someone get to this, you can find some field and get the parent
|
"string" attribute sems to be depreciated in odoo9 ...
need to check the code against trunk (future odoo v9)
this: expr="//page[@string='Information']/group" will not work anymore...
all other xpath handlers seems to work fine...
greetz bole ;)
The text was updated successfully, but these errors were encountered: