refactor: Simplify pivot view cell formatting by removing variation-specific xpath and generalizing value xpath.
This commit is contained in:
parent
f2ac13c446
commit
a3b744c2b2
@ -2,11 +2,7 @@
|
||||
<templates xml:space="preserve">
|
||||
<!-- Patch Pivot View Cells -->
|
||||
<t t-inherit="web.PivotRenderer" t-inherit-mode="extension">
|
||||
<xpath expr="//div[hasclass('o_variation')]" position="attributes">
|
||||
<attribute name="t-esc"></attribute>
|
||||
<attribute name="t-out">getFormattedVariation(cell)</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('o_value') and @t-else='1']" position="attributes">
|
||||
<xpath expr="//div[hasclass('o_value')]" position="attributes">
|
||||
<attribute name="t-esc"></attribute>
|
||||
<attribute name="t-out">getFormattedValue(cell)</attribute>
|
||||
</xpath>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user