From fb93cc2509fc936d80f0d67d7b53ef529f8bc3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Fri, 24 Apr 2015 11:29:20 +0200 Subject: [PATCH] [IMP] pos_restaurant: set default #customer to 1 for all tables. --- addons/pos_restaurant/static/src/js/floors.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/addons/pos_restaurant/static/src/js/floors.js b/addons/pos_restaurant/static/src/js/floors.js index e1075ab34d61d..d9c8ce5a9a1bd 100644 --- a/addons/pos_restaurant/static/src/js/floors.js +++ b/addons/pos_restaurant/static/src/js/floors.js @@ -678,13 +678,7 @@ models.Order = models.Order.extend({ if (!this.table) { this.table = this.pos.table; } - if (!this.customer_count) { - if (this.table) { - this.customer_count = this.table.seats; - } else { - this.customer_count = 1; - } - } + this.customer_count = this.customer_count || 1; this.save_to_db(); }, export_as_JSON: function() {