<?xml version="1.0" encoding="UTF-8" ?>
<templates>
    <t t-name="odex30_account_reports.AccountReportFilterRoundingUnit">
        <Dropdown>
            <button class="btn btn-secondary">
                <t t-out="roundingUnitName(this.controller.options['rounding_unit'])"/>
            </button>

            <t t-set-slot="content">
                <t t-foreach="controller.options.rounding_unit_names" t-as="roundingUnitValue" t-key="roundingUnitValue_index">
                    <DropdownItem
                        class="{ 'selected': (controller.options.rounding_unit == roundingUnitValue) }"
                        onSelected="() => this.filterRoundingUnit(roundingUnitValue)"
                    >
                        <t t-out="roundingUnitName(roundingUnitValue)"/>
                    </DropdownItem>
                </t>
            </t>
        </Dropdown>
    </t>
</templates>
