summaryrefslogtreecommitdiff
path: root/addons/payment_adyen/models
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2014-04-16 14:10:55 +0200
committerThibault Delavallée <tde@openerp.com>2014-04-16 14:10:55 +0200
commitade618a63e209907bdd65ed0bdcec0dfa05c7dd6 (patch)
tree4c7daec8d2bc2899ab176b24cd70dc80cbadf85b /addons/payment_adyen/models
parentb7f3808824d7da5f2c3cc1c39a0fa5c66764592f (diff)
[IMP] payment: renamed env field to environment, to avoid conflicts
with the incoming new API. bzr revid: tde@openerp.com-20140416121055-01ygh1zer7cfv98a
Diffstat (limited to 'addons/payment_adyen/models')
-rw-r--r--addons/payment_adyen/models/adyen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/payment_adyen/models/adyen.py b/addons/payment_adyen/models/adyen.py
index 607d65738c5..ab210fed890 100644
--- a/addons/payment_adyen/models/adyen.py
+++ b/addons/payment_adyen/models/adyen.py
@@ -21,13 +21,13 @@ _logger = logging.getLogger(__name__)
class AcquirerAdyen(osv.Model):
_inherit = 'payment.acquirer'
- def _get_adyen_urls(self, cr, uid, env, context=None):
+ def _get_adyen_urls(self, cr, uid, environment, context=None):
""" Adyen URLs
- yhpp: hosted payment page: pay.shtml for single, select.shtml for multiple
"""
return {
- 'adyen_form_url': 'https://%s.adyen.com/hpp/pay.shtml' % env,
+ 'adyen_form_url': 'https://%s.adyen.com/hpp/pay.shtml' % environment,
}
def _get_providers(self, cr, uid, context=None):
@@ -97,7 +97,7 @@ class AcquirerAdyen(osv.Model):
def adyen_get_form_action_url(self, cr, uid, id, context=None):
acquirer = self.browse(cr, uid, id, context=context)
- return self._get_adyen_urls(cr, uid, acquirer.env, context=context)['adyen_form_url']
+ return self._get_adyen_urls(cr, uid, acquirer.environment, context=context)['adyen_form_url']
class TxAdyen(osv.Model):