[FIX] pos_restaurant: edition of table

When you were trying to edit the table map of your pos, you were getting
a traceback because, it was getting information from a table that
is not in the list of table.

So we are now correctly set the table in the list when it is created and
duplicated.

TASK-ID: 2057368
This commit is contained in:
Pierre Masereel
2019-08-23 09:34:06 +00:00
parent c25803235a
commit 60644cf344
@@ -216,6 +216,7 @@ var TableWidget = PosBaseWidget.extend({
for (var field in table) {
self.table[field] = table[field];
}
self.pos.tables_by_id[table.id] = self.table;
self.renderElement();
});
}, function(type,err) {