From 9dff6516e44cbafa769216355ded11c95a099cc8 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 6 Sep 2017 19:03:13 +0200 Subject: [PATCH] [FIX] point_of_sale: avoid storing `undefined` in localstorage --- addons/point_of_sale/static/src/js/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/db.js b/addons/point_of_sale/static/src/js/db.js index ccdd0fb6616..caf64ca72e4 100644 --- a/addons/point_of_sale/static/src/js/db.js +++ b/addons/point_of_sale/static/src/js/db.js @@ -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');