Skip to Content
Menu
This question has been flagged
1352 Views
                    

Hello, 

I'm trying to Xpath match the Links in the Stock Forecast view. 


They are defined like so: 

Okay this editor doesnt like to print xml content... you can refer to:

https://github.com/odoo/odoo/blob/e887055f01fa1d726f4aaf10fd954b2a132ed018/addons/stock/report/report_stock_forecasted.xml#L135-L139


I woult like to match the "a" Tag. 

I already tried escaping the Expression, but no such luck so far:

expr="//a[@t-if='line[\'document_out\']']" 
expr="//a[@t-if='line['document_out']']"


Does anyone know, how to escape the Square breackets and the single quotes?  

Avatar
Discard
Related Posts Replies Views Activity
0
Apr 20
2597
1
Dec 19
1772
1
Aug 19
4975
1
Oct 16
5055
0
Mar 15
3922