summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2015-01-28 11:26:06 +0100
committerOlivier Dony <odo@openerp.com>2015-01-28 14:34:54 +0100
commit7a0451d64960b2582208054757d818a1e92f3162 (patch)
tree1ef598db541654aabd7788a7b47343a6de07279a /addons/analytic_user_function/analytic_user_function_view.xml
parentc62a75a5f3eb08f5fefe69706858a438361cb73d (diff)
[FIX] safe_eval: no shadowing of PostgreSQL's exceptions
Letting PostgreSQL low-level exceptions bubble up ensures that the mechanism for automatically retrying transactions will work. In case of transient errors such as deadlocks or serialization errors, the transaction will be transparently retried. Previously they were transformed into ValueError and caused a permanent failure immediately. The fallback to ValueError is meant for invalid expressions or expressions that use variables not provided in the evaluation context. Other exception types should be preserved (this is further improved in Odoo 8)
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions