From 0b3e8c393432b4ff42912b98d335bb42e659e177 Mon Sep 17 00:00:00 2001 From: "Adrien Guilliams (adgu)" Date: Wed, 6 Sep 2023 13:41:22 +0200 Subject: [PATCH] [FIX] pos_restaurant: fix editable table style In the floorplan, when clicking a table in edit mode, this table changes to an editable table. The method setting the style of this table was different from the one setting the style of a classic table leading to placing it to high on the floorplan. closes odoo/odoo#134810 X-original-commit: 54e51a2f247bff866d842f201841fd4c2c133d21 Signed-off-by: David Monnom (moda) Signed-off-by: Adrien Guilliams (adgu) --- .../static/src/app/floor_screen/editable_table.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/pos_restaurant/static/src/app/floor_screen/editable_table.js b/addons/pos_restaurant/static/src/app/floor_screen/editable_table.js index 42d9639a758..e77fac40bef 100644 --- a/addons/pos_restaurant/static/src/app/floor_screen/editable_table.js +++ b/addons/pos_restaurant/static/src/app/floor_screen/editable_table.js @@ -137,8 +137,8 @@ export class EditableTable extends Component { const position_h = widthTable * (index % nbrHorizontal) + 5 + (index % nbrHorizontal) * 10; const position_v = - widthTable * Math.floor(index / nbrHorizontal) + - 5 + + (widthTable + 25) * Math.floor(index / nbrHorizontal) + + 10 + Math.floor(index / nbrHorizontal) * 10; Object.assign(this.root.el.style, {