[FIX] payment_adyen: _get_adyen_urls

in python, if-else has a lower priority(operator precedence) than %

opw:642886
This commit is contained in:
Goffin Simon 2015-06-19 13:50:26 +02:00
parent cfca8bda8e
commit 9ef5e40278
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class AcquirerAdyen(osv.Model):
- yhpp: hosted payment page: pay.shtml for single, select.shtml for multiple
"""
return {
'adyen_form_url': 'https://%s.adyen.com/hpp/pay.shtml' % 'live' if environment == 'prod' else environment,
'adyen_form_url': 'https://%s.adyen.com/hpp/pay.shtml' % ('live' if environment == 'prod' else environment),
}
def _get_providers(self, cr, uid, context=None):