[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) <moda@odoo.com>
Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>
This commit is contained in:
Adrien Guilliams (adgu)
2023-09-11 07:59:53 +00:00
parent 0eb67efd0f
commit 0b3e8c3934
@@ -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, {