|
@@ -1,4 +1,3 @@
|
|
|
-
|
|
|
window.pdfjsLib.GlobalWorkerOptions.workerSrc = '/print_engine/static/lib/js/pdf.worker.js';
|
|
|
openerp.pdfJs = window.pdfjsLib || {};
|
|
|
openerp.printJs = window.printJS || {};
|
|
@@ -38,7 +37,7 @@ openerp.print_engine = function (instance, local) {
|
|
|
$('#printer-status').addClass('printer-status-online');
|
|
|
},
|
|
|
handle_error: function (e) {
|
|
|
- console.log(e);
|
|
|
+ instance.webclient.crashmanager.show_message(e);
|
|
|
},
|
|
|
handle_connect_error: function (e) {
|
|
|
$('#printer-status').removeClass();
|
|
@@ -189,7 +188,6 @@ openerp.print_engine = function (instance, local) {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
-
|
|
|
local.PrinterSelectionWidget = instance.web.Widget.extend({
|
|
|
template: 'PrinterSelectionWidget',
|
|
|
events: {
|
|
@@ -439,8 +437,6 @@ openerp.print_engine = function (instance, local) {
|
|
|
url = this.session.url('/web/report', params);
|
|
|
}
|
|
|
|
|
|
- console.log(action);
|
|
|
-
|
|
|
instance.pdfJs.getDocument(url).then(function (pdf) {
|
|
|
pdf.getData().then(function (data) {
|
|
|
instance.web.unblockUI();
|