diff --git a/addons/point_of_sale/static/src/img/icons/png48/printer.png b/addons/point_of_sale/static/src/img/icons/png48/printer.png new file mode 100644 index 00000000000..9747f37ddcc Binary files /dev/null and b/addons/point_of_sale/static/src/img/icons/png48/printer.png differ diff --git a/addons/point_of_sale/static/src/img/icons/printer.svg b/addons/point_of_sale/static/src/img/icons/printer.svg new file mode 100644 index 00000000000..4c702dc48e2 --- /dev/null +++ b/addons/point_of_sale/static/src/img/icons/printer.svg @@ -0,0 +1,502 @@ + + + diff --git a/addons/point_of_sale/static/src/js/pos_screens.js b/addons/point_of_sale/static/src/js/pos_screens.js index 875524dfaa1..4281125dd27 100644 --- a/addons/point_of_sale/static/src/js/pos_screens.js +++ b/addons/point_of_sale/static/src/js/pos_screens.js @@ -642,8 +642,6 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa start: function() { this.pos.bind('change:selectedOrder', this.change_selected_order, this); this.change_selected_order(); - $('button#pos-finish-order', this.$element).click(_.bind(this.finishOrder, this)); - $('button#print-the-ticket', this.$element).click(_.bind(this.print, this)); }, show: function(){ this._super(); @@ -657,6 +655,18 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa this.pos_widget.action_bar.set_logout_visible(true, function(){ self.pos_widget.screen_selector.set_user_mode('client'); }); + + this.pos_widget.action_bar.add_new_button({ + label: 'Print', + icon: '/point_of_sale/static/src/img/icons/png48/printer.png', + click: function(){ self.print(); }, + }); + + this.pos_widget.action_bar.add_new_button({ + label: 'Next Order', + icon: '/point_of_sale/static/src/img/icons/png48/go-next.png', + click: function() { self.finishOrder(); }, + }); }, print: function() { window.print(); diff --git a/addons/point_of_sale/static/src/xml/pos.xml b/addons/point_of_sale/static/src/xml/pos.xml index 930dbd3c18f..8ac4f0f49c8 100644 --- a/addons/point_of_sale/static/src/xml/pos.xml +++ b/addons/point_of_sale/static/src/xml/pos.xml @@ -218,11 +218,6 @@