Monday, June 2, 2025
1 change · saas-17.4
Resolved issues and error corrections
Restaurant point-of-sale refunds no longer fail when the location is configured without a floor or table map. This prevents an error during paid-order refunds and keeps service moving for bars or restaurants that do not use table assignments.
Original PR description
### Steps to reproduce: - Create a new POS from the settings (tick the "is bar/restaurant" option) - Remove the Floors & Tables Map - Open a session with this POS - Create a new order with the + button at the top - Select a product, pay for it and click on "New Order" - Click on the menu at the top right, then Orders - Change the status to "Paid" to find the order - Refund it - An error pops up ### Cause: When doing a refund, Odoo tries to fill the table field of the new order, when there are no table selected it gets all tables and returns the first one. So when there are no tables, the `setTable` method has its `table` field to `undefined` and raises an error when it tries to read its values. ### Solution: Do not call `setTable` when there are no tables.