this.$('.js_invoice').removeClass('highlight');
}
},
+ click_set_customer: function(){
+ this.pos_widget.screen_selector.set_current_screen('clientlist');
+ },
renderElement: function() {
var self = this;
this._super();
self.validate_order();
});
+ this.$('.js_set_customer').click(function(){
+ self.click_set_customer();
+ });
this.$('.js_invoice').click(function(){
self.click_invoice();
});
<t t-name="ActionpadWidget">
<div class="actionpad">
<button class='button set-customer'>
- <i class='fa fa-user' /> Set Customer
+ <i class='fa fa-user' /> Customer
</button>
<button class='button pay'>
<i class='fa fa-chevron-right' /> Payment
</section>
<div class='payment-buttons'>
+ <div class='button js_set_customer'>
+ <i class='fa fa-user' />Customer
+ </div>
<t t-if='widget.pos.config.iface_invoicing'>
<t t-if='widget.pos.get_order()'>
<div t-attf-class='button js_invoice #{ widget.pos.get_order().is_to_invoice() ? "highlight" : ""} '>