diff options
| author | Christophe Matthieu <chm@odoo.com> | 2017-06-22 15:57:54 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2017-06-26 15:09:13 +0200 |
| commit | 4d79a1ff58ff6ff3b4fdebc609ce77896c125e3d (patch) | |
| tree | ae3f79b73e9659310d00574ed789cd6bb5ed4563 /addons/web/static/src/js/core/pyeval.js | |
| parent | e1c74e374c58dde38963fb61b6d46cb438cc95e0 (diff) | |
[FIX] payment: prevent access error for manual payments
Rev. cf1df16aea5d23006184f51a20c18f5bf3dd6d8c introduced new callback
fields with restricted access. The lazy hash generation in create() was
however causing access errors for manual transactions created by users
who are not administrators (e.g. Accountants).
Those manual transactions do not typically need a callback, but checking
the presence of the callback requires a limited sudo() context.
Similarly, the execute_callback() method may be called for a manual,
non-admin transaction, and should not do anything if there is no
callback, instead of crashing with an AccessError.
The generation of the hash and execution of the callback should be done
with a normal environment, though, as these must only be used for
transactions run by the system.
opw-747536
Diffstat (limited to 'addons/web/static/src/js/core/pyeval.js')
0 files changed, 0 insertions, 0 deletions
