[FIX] point_of_sale: avoid storing undefined in localstorage

This commit is contained in:
Christophe Simonis
2017-09-06 19:03:13 +02:00
parent 7580bfa49d
commit 9dff6516e4
+1 -1
View File
@@ -479,7 +479,7 @@ var PosDB = core.Class.extend({
},
set_cashier: function(cashier) {
// Always update if the user is the same as before
this.save('cashier', cashier);
this.save('cashier', cashier || null);
},
get_cashier: function() {
return this.load('cashier');