Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] models.py: Don't commit after fetching a translation
Purpose ======= When trying the translate a sql_contraint message after an integrity error we use the current cursor in a 'with', just to make a SELECT query. That way, the cursor is commited at the end of the with statement, trying to commit the inconsitent state of the cursor that was the reason of the integrity error. Just close the cursor, as we only fetch translations from the database. closes odoo#36458 Signed-off-by: Yannick Tivisse (yti) <[email protected]>
- Loading branch information