Thursday, March 2, 2023
2 changes · master
Resolved issues and error corrections
Fixed an issue that could make the restaurant floor screen crash when staff used a pinch gesture on a touch screen. This improves reliability for point-of-sale teams using floor plans on tablets or touch devices.
Original PR description
In odoo/odoo#112610 the draggable/resizable behaviour of the floor screen was refactored, and in doing so the FloorScreen was converted to a Component from a LegacyComponent. Doing so makes `this.el` unavailable in the component but it was still using that for the pinch, causing a crash. This commit fixes that issue by using a ref instead of using querySelector on this.el.
This fixes a missing style reference that caused the barcode scanner on the mobile point-of-sale employee login screen to display incorrectly. The change restores the intended appearance, helping staff use barcode login smoothly on mobile devices.
Original PR description
In odoo/enterprise#35884 the style for the barcode scanner was moved to the barcodes module, but the manifest of pos_hr_mobile was improperly adapted: the existing scss file was removed from the manifest but the new location of the scss file was not added. This commit fixes that.