Community mailing list archives

community@mail.odoo.com

Re: xpath on v9 community

by
Camptocamp SA, Yannick Vaucher
- 08/31/2016 04:31:38
Ondrëj,

String isn't usable anymore because of translation being made before the xpath is applied. Thus, your xpath will only work in english.
The check can be bypassed in some case with a complexe xpath including a string that is undetected but this is clearly a bad idea as it would become english only and would raise a view error for other languages (if the translation of the String is different).

Cheers,

Yannick Vaucher
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 30
Office: +41 21 619 10 10

On 23 August 2016 at 18:10, 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