summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorFrédéric van der Essen <fvdessen@gmail.com>2015-04-24 11:29:20 +0200
committerFrédéric van der Essen <fvdessen@gmail.com>2015-05-04 14:13:44 +0200
commitfb93cc2509fc936d80f0d67d7b53ef529f8bc3d0 (patch)
tree2c0e7aa4a1eddf7b9404c361d6974ce4ab3e8e39 /addons
parent3149c1e03f7e504b38d0acb80af6b073dfdf0618 (diff)
[IMP] pos_restaurant: set default #customer to 1 for all tables.
Diffstat (limited to 'addons')
-rw-r--r--addons/pos_restaurant/static/src/js/floors.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/addons/pos_restaurant/static/src/js/floors.js b/addons/pos_restaurant/static/src/js/floors.js
index e1075ab34d6..d9c8ce5a9a1 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() {