[IMP] point_of_sale: show traceback when there is a posbox error

This commit is contained in:
Frederic van der Essen
2014-11-04 23:11:07 +01:00
parent fab2e29d50
commit b55cd571f5
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -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;
@@ -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;
}