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-L139I 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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
1
Responder
2155
Visualizações
There are examples in the odoo source code.
Like this:
<xpath expr="//div[hasclass('col-4')][3]//span[@t-if="o.move_type == 'out_invoice' and o.state == 'posted'"]" position="replace">
If you use '
to replace '
, it seems to be important to wrap this part with "
s and not with '
s
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
0
abr. 20
|
3339 | ||
|
1
dez. 19
|
2317 | ||
|
1
ago. 19
|
5939 | ||
|
1
out. 16
|
6087 | ||
|
0
mar. 15
|
4727 |