<?xml version="1.0" encoding="UTF-8" ?>
<templates>
    <t t-name="fusion_accounting.AccountReportButtonsBar">
        <t t-if="controller.buttons.length">
            <t t-foreach="barButtons" t-as="barButton" t-key="barButton_index">
                <button
                    t-att-class="'btn text-nowrap' + (barButton.disabled ? ' disabled' : '') + (barButton_first ? ' btn-primary' : ' btn-secondary')"
                    t-on-click="(ev) => controller.reportAction(ev, barButton.error_action || barButton.action, barButton.action_param, true)"
                >
                    <t t-out="barButton.name"/>
                </button>
            </t>
        </t>
    </t>
</templates>
