Wednesday, September 13, 2023
2 changes
Resolved issues and error corrections
Closing a form dialog with the X button or Escape key now behaves the same as using Discard. This helps prevent inconsistent outcomes when users exit a form without saving changes.
Original PR description
The goal of this commit is to ensure that the form view dialog close button performs the same behaviour as the discard button. To enable this, we had to add the dialogData.dismiss, which lets you add a callBack that will only be executed when a dialog is closed because of the "x" or the "escape" shortcut.
This fix updates Mexican electronic invoicing POS test tours to open the Point of Sale app using the standard POS method. It reduces failures in automated checks, helping keep POS invoicing workflows stable without changing user-facing behavior.
Original PR description
The tours in this module are not relying on the default method for opening the pos app. This has caused problems. In this PR we replace one of the tour steps with the default method from POS. https://github.com/odoo/odoo/pull/131171