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

    <t
        t-name="ActionpadWidget"
        t-inherit="point_of_sale.ActionpadWidget"
        t-inherit-mode="extension"
        owl="1"
    >
        <xpath
            expr="div[hasclass('actionpad')]//button[hasclass('pay')]"
            position="attributes"
        >
            <attribute
                name="t-att-class"
            >{'disabled-mode': !hasPaymentControlRights}</attribute>
            <attribute name="t-att-disabled">!hasPaymentControlRights</attribute>
        </xpath>
    </t>

</templates>
