summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2019-09-05 14:05:30 +0000
committerYannick Tivisse <yti@odoo.com>2019-09-11 09:50:09 +0000
commit1a0a437855de3cf2b47a98862e8a577971ffb0a4 (patch)
treec8ccd6284628331468b4a5e1a4c230ccae84dd35 /addons/web/static/src
parent5a032bb1fc315378aa289329a0767bf1f65597d3 (diff)
[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/odoo#36458 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions