Thursday, January 4, 2024
5 changes · 17.0
Resolved issues and error corrections
This fixes a crash that could happen in free trial setups after installing Restaurant POS and then changing the accounting chart through demo data. The system now also checks archived POS configurations, so old linked records are cleaned up properly and the setup continues without interruption.
Original PR description
When you install point_of_sale and then pos_restaurant, you end up with a pos_config with an archived journal. Then, if you change the chart of account via demo data, it doesn't delete the archived log and crashes. To correct this problem, we add `with_context(active_test=False)` to the pos.config search.
Fixes an issue where automated actions that show a warning could fail with a server error instead of displaying the message. This restores the expected warning dialog behavior, helping users receive guidance without interruptions.
Original PR description
Before the refactoring introduced at 0a744ac, it was possible to return a warning from a `code`-type base automation with the `action` variable:
```py
if len(record.name) > 20:
action = {
"warning": {
"title": "Name too long",
"message": "The name of the record is too long",
}
}
```
This would trigger a visual dialog with the title and message in the client.
Due to a louche `+=` operator change in the refacto, this kind of automation raises a key error on the server, as the additive part of the operator will try to access the 'warning' key in the result dict, which may not (and usually will not) exist.
I assume this was done in an attempt to 'accumulate' warnings, but the warnings in questions are dict that are not really additive anyway. Better to support the *last* returned warning rather than none at all.
This commit basically returns to the previous situation for onchange warnings.Mobile users can now tap message attachments to preview them when multiple files are attached. The download and delete quick actions are hidden on small screens to prevent them from blocking the preview area, restoring expected attachment access.
Original PR description
When a message had more than 1 attachment, it was not possible to preview the attachment on a mobile device. This happens because the hover buttons for delete/download the file took the whole clickable area of attachment to see the preview. To enable quick actions in mobile, this require non-trivial UI tweaking. To match behaviour of version 16.0, these quick-actions have been disabled in mobile. opw-3664795 Before  After 
The India localization now sets the default sales and purchase tax back to GST 5% instead of the accidentally changed IGST 18%. This helps Indian companies start with the correct standard tax setup and avoid incorrect tax amounts on new transactions.
Original PR description
Problem --------- Before, the default tax for sale and purchase was: GST 5%. Commit 084408a9bb26dcc1ac54986802b08638c72b6235, modfied by accident the default tax to IGST 18%. Objective --------- Revert the deault taxes back to GST 5%. Solution --------- Update the default taxes in the l10n_in template file. task-3634577 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Mobile visitors registering for events can now clearly see the quantity selected for each ticket when multiple ticket options are available. This helps prevent registration mistakes and improves the checkout experience on smaller screens.
Original PR description
Issue:
- In mobile when we have multiple tickets, the quantity of
selected tickets is not visible
Steps to reproduce the issue:
- Go to events
- Select any event with multiple tickets
- Go to website
- Click on register now
- Notice in mobile the quantity of selected tickets is not visible
Solution:
- Add style to the quantity of selected tickets
opw-3602057
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr