odoo/openerp/service
Denis Ledoux 8209368b02 [FIX] web: current transaction is aborted
This reverts commit bd9cbdfc41.

The above revision solved the SQL constraints not being
translated when raised. They were not translated because
the context, containing the lang, was not located as expected
in the `kwargs` dict.

While it solved this issue, it had as side-effect to raise
`current transaction is aborted,
commands ignored until end of transaction block` errors more
often when using the web client.

This can be explained by the double check, when the first
check raised this error
- which can happen, e.g. when the cursor is closed,
there is a retry mechanism in such cases -
and by the fact the transaction was not rollbacked.

This issue could have been solved as well by rollbacking
the transaction, but it is regarded as not-so-clean.

Therefore, to solve this issue, while still having
the SQL constraints translated, we apply the
second patch proposed in bd9cbdfc41
commit message, which is not-so-clean as well, but
which is a proper solution.

opw-651393
2015-10-13 17:12:34 +02:00
..
__init__.py rename server 2013-10-06 00:18:29 +02:00
common.py [ADD] Stripe-style APIDoc: content 2014-10-27 17:23:16 +01:00
db.py [FIX] db manager: do not use registry to backup a database 2015-04-02 10:10:04 +02:00
model.py [FIX] web: current transaction is aborted 2015-10-13 17:12:34 +02:00
report.py [FIX] setup Environment for the report thread 2014-07-14 12:41:07 +01:00
security.py [MERGE] Forward-port saas-3 up to rev. 10e6ad1355 2015-09-07 11:18:10 +02:00
server.py [FIX] server: missing format string argument. 2015-08-31 17:55:00 +02:00
websrv_lib.py [FORWARD] Forward port of server 7.0 until revision 4988 2013-05-28 12:27:33 +02:00
wsgi_server.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00