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.
 
 
 
 
 

22 lines
918 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" owl="1">
<xpath expr="//span" position="replace">
<span>
<t t-if="env.pos.user_session.includes(env.pos.pos_session.id) and env.pos.button.includes('Reward')">
<t t-esc=""/>
</t>
<t t-else="">
<span class="control-button"
t-att-class="hasClaimableRewards() ? 'highlight' : ''">
<i class="fa fa-star"></i>
<span> </span>
<span>Reward</span>
</span>
</t>
</span>
</xpath>
</t>
</templates>