You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
800 B
15 lines
800 B
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<templates id="template" xml:space="preserve">
|
|
<!-- This is used to restrict the REFUND button if it is restricted -->
|
|
<t t-name="Refund" t-inherit="point_of_sale.RefundButton"
|
|
t-inherit-mode="extension">
|
|
<xpath expr="//button[hasclass('control-button')]" position="replace">
|
|
<t t-if="!env.services.pos.user_session.includes(env.services.pos.pos_session.id) and env.services.pos.button.includes('Refund')">
|
|
<button class="control-button btn btn-light rounded-0 fw-bolder" t-on-click="() => this.click()">
|
|
<i class="fa fa-undo me-1" role="img" aria-label="Refund" title="Refund"/>
|
|
Refund
|
|
</button>
|
|
</t>
|
|
</xpath>
|
|
</t>
|
|
</templates>
|
|
|