summaryrefslogtreecommitdiff
path: root/addons/payment_authorize/models/authorize.py
diff options
context:
space:
mode:
authorRavi Gohil <rgo@odoo.com>2016-07-21 15:14:02 +0530
committerThibault Delavallée <tde@openerp.com>2016-09-06 10:20:41 +0200
commitb2265108406e0dc1d1e1250fdbad5bc2cee2006d (patch)
tree5440223f9913faf5eec79102631eae464e991847 /addons/payment_authorize/models/authorize.py
parent75a196972e9e1056c8ab9c299ddfc8e2eaafd812 (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_authorize/models/authorize.py')
-rw-r--r--addons/payment_authorize/models/authorize.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/payment_authorize/models/authorize.py b/addons/payment_authorize/models/authorize.py
index 2708daa37a6..5168d8d1b99 100644
--- a/addons/payment_authorize/models/authorize.py
+++ b/addons/payment_authorize/models/authorize.py
@@ -30,8 +30,8 @@ class PaymentAcquirerAuthorize(models.Model):
providers.append(['authorize', 'Authorize.Net'])
return providers
- authorize_login = fields.Char(string='API Login Id', required_if_provider='authorize')
- authorize_transaction_key = fields.Char(string='API Transaction Key', required_if_provider='authorize')
+ authorize_login = fields.Char(string='API Login Id', required_if_provider='authorize', groups='base.group_user')
+ authorize_transaction_key = fields.Char(string='API Transaction Key', required_if_provider='authorize', groups='base.group_user')
def _authorize_generate_hashing(self, values):
data = '^'.join([