From b55cd571f522ae4ebf94ae4ac4924e6de50c13a0 Mon Sep 17 00:00:00 2001 From: Frederic van der Essen Date: Tue, 4 Nov 2014 23:10:20 +0100 Subject: [PATCH] [IMP] point_of_sale: show traceback when there is a posbox error --- addons/point_of_sale/static/src/css/pos.css | 3 ++- addons/point_of_sale/static/src/js/devices.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css index d035c79adcc..da9aadc9b43 100644 --- a/addons/point_of_sale/static/src/css/pos.css +++ b/addons/point_of_sale/static/src/css/pos.css @@ -1743,8 +1743,9 @@ td { .pos .popup .comment.traceback { height: 264px; overflow: auto; - font-size: 14px; + font-size: 12px; text-align: left; + white-space: pre-wrap; font-family: 'Inconsolata'; -webkit-user-select: text; -moz-user-select: text; diff --git a/addons/point_of_sale/static/src/js/devices.js b/addons/point_of_sale/static/src/js/devices.js index 71dfb101b2c..5e813b9d73c 100644 --- a/addons/point_of_sale/static/src/js/devices.js +++ b/addons/point_of_sale/static/src/js/devices.js @@ -415,9 +415,9 @@ function openerp_pos_devices(instance,module){ //module is instance.point_of_sal send_printing_job(); },function(error){ if (error) { - self.pos.pos_widget.screen_selector.show_popup('error',{ - 'message': _t('PosBox Printing Error'), - 'comment': _t("The receipt could not be printed. The software installed on the posbox is probably out of date. Please refer to the software instructions in the posbox manual or contact the customer support"), + self.pos.pos_widget.screen_selector.show_popup('error-traceback',{ + 'message': _t('Printing Error: ') + error.data.message, + 'comment': error.data.debug, }); return; }