Wednesday, December 23, 2020
1 change · master
Resolved issues and error corrections
When deleting records, the confirmation window now closes if the deletion fails with a user-facing error. This prevents users from seeing repeated error messages and makes the deletion flow clearer.
Original PR description
PURPOSE Close cofirm dialog on UserError. SPEC Deleting records from listview show confirm dialog and if unlink method throws UserError then it will display UserError dialog above confirm dialog and closing UserError dialog and clicking on OK button in confirn dialig will again open UserError dialog, so to avoid this situation close confirm dialog when error occurs. TASK 2221075 Fixes https://github.com/odoo/odoo/issues/59688 Closes https://github.com/odoo/odoo/issues/59688 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr