Skip to content

Commit 9c61778

Browse files
committed
[IMP] *: Remove the old syntax of t-call (cleanup)
Cleanup after applying the script `/odoo/upgrade_code/19.0-00-t-call.py` from the previous commit.
1 parent 7e2227b commit 9c61778

File tree

1 file changed

+24
-36
lines changed

1 file changed

+24
-36
lines changed

theme_notes/views/snippets/s_product_catalog.xml

Lines changed: 24 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -30,45 +30,33 @@
3030
<xpath expr="//div[hasclass('container')]//p" position="replace" mode="inner">
3131
Get your ticket now
3232
</xpath>
33-
<!-- Left column : names -->
34-
<xpath expr="//ul/t/t" position="replace" mode="inner">
35-
Regular ticket
36-
</xpath>
37-
<xpath expr="//ul/t[2]/t" position="replace" mode="inner">
38-
Regular ticket + hotel
39-
</xpath>
40-
<xpath expr="//ul/t[3]/t" position="replace" mode="inner">
41-
VIP ticket
42-
</xpath>
43-
<!-- Left column : prices -->
44-
<xpath expr="//ul/t/t[2]" position="replace" mode="inner">
45-
$19.00
46-
</xpath>
47-
<xpath expr="//ul/t[2]/t[2]" position="replace" mode="inner">
48-
$59.00
49-
</xpath>
50-
<xpath expr="//ul/t[3]/t[2]" position="replace" mode="inner">
51-
$109.50
52-
</xpath>
53-
<!-- Right column : names -->
54-
<xpath expr="(//ul)[2]/t/t" position="replace" mode="inner">
55-
Regular ticket
56-
</xpath>
57-
<xpath expr="(//ul)[2]/t[2]/t" position="replace" mode="inner">
58-
Regular ticket + hotel
59-
</xpath>
60-
<xpath expr="(//ul)[2]/t[3]/t" position="replace" mode="inner">
61-
VIP ticket
33+
34+
<!-- Left column -->
35+
<xpath expr="//ul/t" position="attributes">
36+
<attribute name="name.translate">Regular ticket<attribute>
37+
<attribute name="price.translate">$19.00<attribute>
6238
</xpath>
63-
<!-- Right column : prices -->
64-
<xpath expr="(//ul)[2]//t[2]" position="replace" mode="inner">
65-
$25.00
39+
<xpath expr="//ul/t[2]" position="attributes">
40+
<attribute name="name.translate">Regular ticket + hotel<attribute>
41+
<attribute name="price.translate">$59.00<attribute>
6642
</xpath>
67-
<xpath expr="(//ul)[2]/t[2]/t[2]" position="replace" mode="inner">
68-
$65.00
43+
<xpath expr="//ul/t[3]" position="attributes">
44+
<attribute name="name.translate">VIP ticket<attribute>
45+
<attribute name="price.translate">$109.50<attribute>
6946
</xpath>
70-
<xpath expr="(//ul)[2]/t[3]/t[2]" position="replace" mode="inner">
71-
$115.50
47+
48+
<!-- Left column -->
49+
<xpath expr="(//ul)[2]/t" position="attributes">
50+
<attribute name="name.translate">Regular ticket<attribute>
51+
<attribute name="price.translate">$25.00<attribute>
52+
</xpath>
53+
<xpath expr="(//ul)[2]/t[2]" position="attributes">
54+
<attribute name="name.translate">Regular ticket + hotel<attribute>
55+
<attribute name="price.translate">$65.00<attribute>
56+
</xpath>
57+
<xpath expr="(//ul)[2]/t[3]" position="attributes">
58+
<attribute name="name.translate">VIP ticket<attribute>
59+
<attribute name="price.translate">$115.50<attribute>
7260
</xpath>
7361
</template>
7462

0 commit comments

Comments
 (0)