<?xml version="1.0" encoding="UTF-8" ?>
<!--
    Copyright 2021 ITerra - Sergey Shebanin
    License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
-->
<templates id="template" xml:space="preserve">
    <t t-inherit="web.NavBar.SectionsMenu" t-inherit-mode="extension" owl="1">
        <xpath
            expr="//t[@t-foreach='sections']//t[@t-set='hotkey']"
            position="attributes"
        >
            <attribute
                name="t-value"
                t-translation="off"
            >'shift+' + ((section_index + 1) % 10).toString()</attribute>
        </xpath>
        <xpath
            expr="//t[@t-if='currentAppSectionsExtra.length']//t[@t-set='hotkey']"
            position="attributes"
        >
            <attribute
                name="t-value"
                t-translation="off"
            >'shift+' + (sectionsVisibleCount + 1 % 10).toString()</attribute>
        </xpath>
    </t>
    <t t-inherit="web.Pager" t-inherit-mode="extension" owl="1">
        <xpath expr="//button[hasclass('o_pager_previous')]" position="attributes">
            <attribute
                name="t-att-accesskey"
            >props.withAccessKey ? 'z' : false</attribute>
        </xpath>
        <xpath expr="//button[hasclass('o_pager_next')]" position="attributes">
            <attribute
                name="t-att-accesskey"
            >props.withAccessKey ? 'x' : false</attribute>
        </xpath>
    </t>
</templates>
