Tuesday, March 19, 2024
1 change · saas-17.1
Resolved issues and error corrections
This update resolves an issue where automatic invoice creation would trigger errors and tracebacks. The fix ensures invoices are correctly handled, preventing errors during payment processing and improving the reliability of invoice generation. This improves the overall customer experience.
Original PR description
Before this commit, when the automatic invoice setting is enabled, a traceback would be shown when customers pay and the post-processing of the transaction tries to create an invoice. The problem is that the invoice is created in sudo, but it's unsudoed before logging invoices in the chatter. Now, the invoice will stay sudoed if the method is called in sudo. opw-3700576 Forward-Port-Of: odoo/odoo#157779