diff --git a/addons/point_of_sale/i18n/point_of_sale.pot b/addons/point_of_sale/i18n/point_of_sale.pot index 843c98f4efb..99fe05088b6 100644 --- a/addons/point_of_sale/i18n/point_of_sale.pot +++ b/addons/point_of_sale/i18n/point_of_sale.pot @@ -4408,6 +4408,13 @@ msgid "" "backend for the order: " msgstr "" +#. module: point_of_sale +#. openerp-web +#: code:addons/point_of_sale/static/src/xml/pos.xml:715 +#, python-format +msgid "The order has been synchronized earlier. To print the invoice please refer to the order in the backend" +msgstr "" + #. module: point_of_sale #: model:ir.model.fields,help:point_of_sale.field_pos_config__iface_precompute_cash msgid "" diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css index ae66894fd7a..3819527461e 100644 --- a/addons/point_of_sale/static/src/css/pos.css +++ b/addons/point_of_sale/static/src/css/pos.css @@ -1513,7 +1513,8 @@ td { .pos .keyboard_frame, .pos .receipt-screen header, .pos .receipt-screen .top-content, - .pos .receipt-screen .centered-content .button { + .pos .receipt-screen .centered-content .button, + .pos .receipt-screen .centered-content .print_invoice { display: none !important; } .pos, diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js index 045659569e0..7725f9bea74 100644 --- a/addons/point_of_sale/static/src/js/screens.js +++ b/addons/point_of_sale/static/src/js/screens.js @@ -1787,19 +1787,6 @@ var ReceiptScreenWidget = ScreenWidget.extend({ self.print(); } }); - var button_print_invoice = this.$('.button.print_invoice'); - button_print_invoice.click(function () { - var order = self.pos.get_order(); - var invoiced = self.pos.push_and_invoice_order(order); - self.invoicing = true; - - invoiced.catch(self._handleFailedPushForInvoice.bind(self, order, true)); // refresh - - invoiced.then(function(){ - self.invoicing = false; - self.gui.show_screen('receipt', {button_print_invoice: false}, true); // refresh - }); - }); }, render_change: function() { @@ -1807,7 +1794,7 @@ var ReceiptScreenWidget = ScreenWidget.extend({ this.$('.change-value').html(this.format_currency(this.pos.get_order().get_change())); var order = this.pos.get_order(); var order_screen_params = order.get_screen_data('params'); - var button_print_invoice = this.$('.button.print_invoice'); + var button_print_invoice = this.$('h2.print_invoice'); if (order_screen_params && order_screen_params.button_print_invoice) { button_print_invoice.show(); } else { diff --git a/addons/point_of_sale/static/src/xml/pos.xml b/addons/point_of_sale/static/src/xml/pos.xml index 5244e4c2db8..b90c797b6bf 100644 --- a/addons/point_of_sale/static/src/xml/pos.xml +++ b/addons/point_of_sale/static/src/xml/pos.xml @@ -860,9 +860,7 @@