@@ -401,9 +401,9 @@ openerp.printer_bridge = function (instance, local) {
var matchMimeType = this.source.match(/data:[a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+.*,/);
if (matchMimeType) {
- if (self.source.startsWith('data:application/pdf;base64,')) {
- self.source = {
- data: self.source
+ if (this.source.startsWith('data:application/pdf;base64,')) {
+ this.source = {
+ data: this.source
};
}