diff options
| author | Pierre Masereel <pim@odoo.com> | 2019-08-23 08:29:16 +0000 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2019-08-23 09:34:06 +0000 |
| commit | 60644cf3442bfa551568405e7e0be146ba157b8e (patch) | |
| tree | 1723dc467f3667227a24d35bb3ac131dae1f0932 /addons/pos_restaurant/static/src/js | |
| parent | c25803235a6db9d54755bfca5ea417c322a9fcba (diff) | |
[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
Diffstat (limited to 'addons/pos_restaurant/static/src/js')
| -rw-r--r-- | addons/pos_restaurant/static/src/js/floors.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/pos_restaurant/static/src/js/floors.js b/addons/pos_restaurant/static/src/js/floors.js index fb083e81a95..2b67788a9e0 100644 --- a/addons/pos_restaurant/static/src/js/floors.js +++ b/addons/pos_restaurant/static/src/js/floors.js @@ -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) { |
