<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
    <!-- Odoo's core Pivot view has no per-measure color hook: cell.measure
         (the field name) is used internally but never exposed on the DOM,
         so a plain CSS rule can't target "the Used column" vs "the
         Remaining column". This adds a harmless data attribute carrying
         cell.measure onto each value cell; inert for every other pivot
         view in the system, and only actually styled by our own CSS rule
         below, scoped to our own field names (xeno_used_days /
         xeno_remaining_days), so it cannot affect any other pivot. -->
    <t t-inherit="web.PivotRenderer" t-inherit-mode="extension">
        <xpath expr="//td[hasclass('o_pivot_cell_value')]" position="attributes">
            <attribute name="t-attf-data-xeno-measure">{{cell.measure}}</attribute>
        </xpath>
    </t>
</templates>
