diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css index 3d34ff8f795..4b2ecf5e991 100644 --- a/addons/point_of_sale/static/src/css/pos.css +++ b/addons/point_of_sale/static/src/css/pos.css @@ -484,6 +484,10 @@ background-color: #D92A2A; } +.receipt-buttons { + white-space: nowrap; +} + @media print { #oe_header, #oe_menu, .point-of-sale #topheader, .point-of-sale #leftpane { display: none; diff --git a/addons/point_of_sale/static/src/js/pos.js b/addons/point_of_sale/static/src/js/pos.js index 553d7a59715..32924cee65a 100644 --- a/addons/point_of_sale/static/src/js/pos.js +++ b/addons/point_of_sale/static/src/js/pos.js @@ -1005,6 +1005,7 @@ openerp.point_of_sale = function(db) { render_element: function() { this.$element.html(qweb_template('pos-receipt-view')); $('button#pos-finish-order', this.$element).click(_.bind(this.finishOrder, this)); + $('button#print-the-ticket', this.$element).click(function(){window.print();}); }, finishOrder: function() { this.shop.get('selectedOrder').destroy(); diff --git a/addons/point_of_sale/static/src/xml/pos.xml b/addons/point_of_sale/static/src/xml/pos.xml index 7879bf32c5e..424506f8bfb 100644 --- a/addons/point_of_sale/static/src/xml/pos.xml +++ b/addons/point_of_sale/static/src/xml/pos.xml @@ -240,7 +240,11 @@
- +
+ + +