<template id="template" xml:space="preserve">
<t t-name="CreatSaleOrder">
<div class="row">
<button id="sale_order_button" >
<i class="fa fa-shopping-cart pos-so-cart"/>
<p>Create Sale Order</p>
</button>
</div>
</t>
</template>
--- here is my js code ----
screens.NumpadWidget.include({
changedMode: function() {
var self = this;
if (self.pos.config.so_option) {
$('#sale_order_button').('show');
} else {
$('#sale_order_button').('hide');
}
self._super();
},
});
Where do you need to add that button in "actionpad" or "numpad"? so inherit appropriate template and add button then you could try in JavaScript.