Reputation: 4174
I am trying to replace a <t>
element using xpath
, but it contains a single quote inside the condition.
here is what I tried.
<xpath expr="//t[@t-if='receipt.client and env.pos.company.country and env.pos.company.country.code == 'IN'']" position="replace"/>
How can I do it?
Upvotes: 1
Views: 914
Reputation: 1314
Consider using this form instead :
<xpath expr="//t[@t-if][1]" position="replace"/>
Upvotes: 0
Reputation: 130
There are two solutions for this.
First :
<xpath expr="//t[@t-if="receipt.client and env.pos.company.country and env.pos.company.country.code == 'IN'"]" position="replace"/>
Second :
<xpath expr="//t[contains(@t-if,"receipt.client and env.pos.company.country and env.pos.company.country.code == 'IN'")]" position="replace"/>
Upvotes: 4