Tuesday, January 14, 2025
2 changes · saas-18.1
Resolved issues and error corrections
This fix improves how category buttons are arranged in the Point of Sale screen so long category lists no longer cause labels to be cut off. It helps cashiers read and select product categories more reliably, especially on screens with many categories.
Original PR description
With Commit[1] we aimed to apply a fix to prevent an horizontal scroll on the screen when the list of category is extremely long. While this solved the issue, it introduces a new one on category labels which were sometimes cut due to the size of the grid elements. | saas-18.1 | This PR | |--------|--------| | <img alt="image" src="https://github.com/user-attachments/assets/d471ef51-502d-496c-8b84-7ec1e19d01af" /> | <img alt="image" src="https://github.com/user-attachments/assets/9870287e-17d1-47b3-a92c-8165f811a0e3" /> | It was also setting the same class twice inside a conditional, which was not useful. With this commit, we apply a `d-flex flex-wrap` to solve both issues. Commit[1]: df97b2966436cd104bd806cb66786824f66fa567 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The receipt screen now avoids calling a restaurant-only function when the restaurant app is not installed. This prevents errors for businesses using the standard Point of Sale setup and keeps checkout receipts working reliably.
Original PR description
isContinueSplitting function is defined in pos_restaurant, but is being called in point_of_sale. This gives us errors when pos_restaurant is not installed. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr