Community mailing list archives

community@mail.odoo.com

Re: xpath on v9 community

by
Daniel Reis
- 08/23/2016 17:03:19
In v9 these elements are supposed to have a name attr because of the string limitation.

Alternatively xpath can match the nth element, but I don't know the exact syntax by heart. Something like //page[3]

--
Daniel

No dia 23/08/2016, às 17:17, Kristian Koci <kristian.koci@gmail.com> escreveu:

Hi Ondrëj, Thank You

No, that's precisely the problem, I can't do that

Moises

Thank You very much

But I want to inherit a page which has a string as a name, that's all

I thought there was a cleaner way to do this, that's way dirty, I mean, I should inherit all the page with it's items?

Seems non sense to me, is this the new way to do it on v9? Really?

On Tue, Aug 23, 2016 at 12:10 PM, Ondřej Kuzník <ondrej.kuznik@credativ.co.uk> wrote:
On 23/08/16 16:37, Kristian Koci wrote:
> Hi Community
> 
> I'm presenting a problem, and a little confusion about this
> 
> As You know, on v9, you can't put *'string'* on xpath anymore, but, what
> if I want to inherit a  which has a string as name? ie. * string="Bill">*, and I want to put an element after this page ie.
> *<xpath expr="//page[@name='Bill']" position="after">

You should still be able to do //page[@string='Bill']

Regards,
Ondrej

-- 
Consultant

credativ Ltd
Open Source for Business
UK office:  +44 1788 298150
Email:      ondrej.kuznik@credativ.co.uk
Web:        http://www.credativ.co.uk
Suite 5 | Bloxam Court | Corporation Street | Rugby | CV21 2DU | UK

We would love to hear your thoughts on our service!
Please send your comments to feedback@credativ.co.uk

credativ Ltd is registered in England & Wales, company no. 5261743
Certified by CompTIA / AccredITUK with the ICT Supply standard of
quality for Software Product Design and Development

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Kristian Koci
Linux User #582221
Public repository: https://github.com/kkoci


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe