Tuesday, May 17, 2022
2 changes · master
Resolved issues and error corrections
Administrators can now open email records even when some attachments or linked message details are restricted. The system shows only attachments the user is allowed to access while still allowing key email information to load, reducing errors during email review and editing.
Original PR description
When the admin opens an email, they might get an error message if they can not access one of the attachment of the email or because of the ACL on mail message. In this merge we avoid that issue by fetching only accessible attachments and allow checking related email_from, reply-to and subject as sudo. Task-2464212
The Point of Sale now avoids reopening an already validated order when a browser tab is duplicated. This prevents duplicate order numbers and avoids situations where staff can edit and validate an order that will not be saved correctly.
Original PR description
Current behavior: In a PoS if you validated an order but didn't click on "new order" button and duplicated the PoS tab in your browser. The new tab would have the previous order as start order but it shouldn't because this order was already validated. This would cause the order to have the same order number (xxxxx-xxx-xxxx). Steps to reproduce: - Start a new PoS session and create an order with some products - Go in the payment menu and validate the order with any payment method - Click on validate but DONT click on "new order" - Duplicate the browser tab - The new tab still contains the previous order - You can modify the order and validate it but it won't be saved because the order number is the same as the previous one. opw-2618951 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr