diff options
| author | Ravi Gohil <rgo@odoo.com> | 2016-07-21 15:14:02 +0530 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2016-09-06 10:20:41 +0200 |
| commit | b2265108406e0dc1d1e1250fdbad5bc2cee2006d (patch) | |
| tree | 5440223f9913faf5eec79102631eae464e991847 /addons/payment_sips/controllers/main.py | |
| parent | 75a196972e9e1056c8ab9c299ddfc8e2eaafd812 (diff) | |
[IMP] payment_*: avoid access error on provider model
As provider model is intended to be used internally restricting the read of
some private fields to the employee group avoid creating access issues.
Diffstat (limited to 'addons/payment_sips/controllers/main.py')
| -rw-r--r-- | addons/payment_sips/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_sips/controllers/main.py b/addons/payment_sips/controllers/main.py index 47c9c8d0f0e..2355229fa41 100644 --- a/addons/payment_sips/controllers/main.py +++ b/addons/payment_sips/controllers/main.py @@ -35,7 +35,7 @@ class SipsController(http.Controller): sips = acquirer_obj.search([('provider', '=', 'sips')], limit=1) - security = sips._sips_generate_shasign(post) + security = sips.sudo()._sips_generate_shasign(post) if security == post['Seal']: _logger.debug('Sips: validated data') res = tx_obj.sudo().form_feedback(post, 'sips') |
