diff options
| author | Gert Pellin <gpe@odoo.com> | 2018-10-18 07:48:37 +0000 |
|---|---|---|
| committer | Gert Pellin <gpe@odoo.com> | 2018-10-18 07:54:11 +0000 |
| commit | c19f0a7a5de375de5662e3538dc964d929f2fe1d (patch) | |
| tree | 4c0e44c61aa18b4c55fb12498713ed2d95eac3a0 /addons | |
| parent | 84481726dcbe9d89dfa2680ab37a25cb78e6260f (diff) | |
[FIX] point_of_sale: new table duplicates
Add new tables in POS screen, close the screen and resume the session
again, the tables you created duplicate
closes odoo/odoo#27924
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/pos_restaurant/static/src/js/floors.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/pos_restaurant/static/src/js/floors.js b/addons/pos_restaurant/static/src/js/floors.js index 4ad760b8d0b..213b0afef09 100644 --- a/addons/pos_restaurant/static/src/js/floors.js +++ b/addons/pos_restaurant/static/src/js/floors.js @@ -259,7 +259,8 @@ var TableWidget = PosBaseWidget.extend({ args: [[['id', '=', table_id]], fields], limit: 1, }) - .then(function (table){ + .then(function (result){ + var table = result[0]; for (var field in table) { self.table[field] = table[field]; } |
