|
@@ -403,7 +403,7 @@ openerp.printer_bridge = function (instance, local) {
|
|
|
if (matchMimeType) {
|
|
|
if (this.source.startsWith('data:application/pdf;base64,')) {
|
|
|
this.source = {
|
|
|
- data: this.source
|
|
|
+ data: this.source.replace(matchMimeType[0], '')
|
|
|
};
|
|
|
}
|
|
|
}
|
|
@@ -412,6 +412,7 @@ openerp.printer_bridge = function (instance, local) {
|
|
|
atob(this.source.data || this.source);
|
|
|
} catch (e) {
|
|
|
instance.webclient.crashmanager.show_message('Unknown data format');
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
var self = this;
|