Skip to content

Commit

Permalink
fix(xml): correct xpath expression to use hasclass function for class…
Browse files Browse the repository at this point in the history
… matching
  • Loading branch information
jacopobacci committed Dec 12, 2024
1 parent c3fa82c commit 346039b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</template>

<template id="report_simple_label4x12_inherit" inherit_id="product.report_simple_label4x12">
<xpath expr="//div[contains(@class, 'o_label_price_medium')]//strong" position="before">
<xpath expr="//div[hasclass('o_label_price_medium')]//strong" position="before">
<span class="me-2">
<span style="font-size: 0.8em;" t-out="'{:.2f}'.format(product.carbon_out_factor_id.carbon_value)" />
<span style="font-size: 0.6em;">kgCO2e</span>
Expand Down

0 comments on commit 346039b

Please sign in to comment.