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.
 
 
 
 
 

18 lines
985 B

<?xml version="1.0" encoding="UTF-8" ?>
<templates id="template" xml:space="preserve">
<!-- This is used to restrict the reward button if it is restricted -->
<t t-name="DisableReward" t-inherit="pos_loyalty.RewardButton"
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('Reward')">
<button class="control-button btn btn-light rounded-0 fw-bolder"
t-attf-class="{{hasClaimableRewards() ? 'highlight text-action' : 'disabled'}}"
t-on-click="() => this.click()">
<i class="fa fa-star me-1"> </i>
<span> </span>
<span>Reward</span>
</button>
</t>
</xpath>
</t>
</templates>