<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">

    <t t-name="pos_hr.Navbar" t-inherit="point_of_sale.Navbar" t-inherit-mode="extension">
        <xpath expr="//li[hasclass('backend-button')]" position="attributes">
            <attribute name="t-if">
                !pos.config.module_pos_hr or pos.get_cashier().role === 'manager' or pos.get_cashier_user_id() === pos.user.id
            </attribute>
        </xpath>

        <xpath expr="//li[hasclass('close-button')]" position="attributes">
            <attribute name="t-if">
                !pos.config.module_pos_hr or pos.get_cashier().role === 'manager' or pos.get_cashier_user_id() === pos.user.id
            </attribute>
        </xpath>

        <xpath expr="//li[hasclass('backend-button')]" position="after">
            <li t-if="pos.config.module_pos_hr" class="menu-item navbar-button lock-button" t-on-click="showLoginScreen">
                <a class="dropdown-item py-2">
                Lock
                </a>
            </li>
        </xpath>
    </t>

</templates>
