From c86f880aa0e69738fb6e78303594254a23b46e24 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Mon, 9 Jan 2012 17:21:26 +0100 Subject: [PATCH] [imp] added possibility to go back to products screen bzr revid: nicolas.vanhoren@openerp.com-20120109162126-zq5qphas06jeuf83 --- addons/point_of_sale/static/src/css/pos.css | 4 ++++ addons/point_of_sale/static/src/js/pos.js | 4 ++++ addons/point_of_sale/static/src/xml/pos.xml | 3 +++ 3 files changed, 11 insertions(+) diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css index 5c5f0ba7415..75ed054fb6d 100644 --- a/addons/point_of_sale/static/src/css/pos.css +++ b/addons/point_of_sale/static/src/css/pos.css @@ -492,6 +492,10 @@ white-space: nowrap; } +.pos-payment-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 133c646503a..57678d65031 100644 --- a/addons/point_of_sale/static/src/js/pos.js +++ b/addons/point_of_sale/static/src/js/pos.js @@ -985,6 +985,10 @@ openerp.point_of_sale = function(db) { }, start: function() { $('button#validate-order', this.$element).click(_.bind(this.validateCurrentOrder, this)); + $('.oe-back-to-products', this.$element).click(_.bind(this.back, this)); + }, + back: function() { + this.shop.get('selectedOrder').set({"step": "products"}); }, validateCurrentOrder: function() { var callback, currentOrder; diff --git a/addons/point_of_sale/static/src/xml/pos.xml b/addons/point_of_sale/static/src/xml/pos.xml index 4728e72d825..9e975ed5158 100644 --- a/addons/point_of_sale/static/src/xml/pos.xml +++ b/addons/point_of_sale/static/src/xml/pos.xml @@ -130,6 +130,9 @@
+