Skip to content

Commit

Permalink
[IMP] pos_restaurant: set default #customer to 1 for all tables.
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdsn committed May 4, 2015
1 parent 3149c1e commit fb93cc2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions addons/pos_restaurant/static/src/js/floors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit fb93cc2

Please sign in to comment.