[FIX] bad assignment

This commit is contained in:
Martin
2015-01-21 12:12:39 +01:00
committed by Frédéric van der Essen
parent e4730b3e57
commit b9433565bf
+2 -2
View File
@@ -10,7 +10,7 @@ openerp.pos_reprint = function(instance){
var self = this;
this._super();
this.pos.old_receipt = null;
if(!this.pos.config.reprint) return;
var reprint = $(QWeb.render('ReprintButton'));
@@ -34,7 +34,7 @@ openerp.pos_reprint = function(instance){
module.ProxyDevice.include({
print_receipt: function(receipt) {
this.pos.old_receipt = this.pos.old_receipt || receipt;
this.pos.old_receipt = receipt || this.pos.old_receipt;
this._super(receipt);
}
});