summaryrefslogtreecommitdiff
path: root/addons/payment_authorize/models/authorize.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-05-13 15:58:06 +0200
committerChristophe Simonis <chs@odoo.com>2016-05-13 15:58:06 +0200
commitc4bba868f0493134b69cb22c3ee0d896d4b38048 (patch)
tree547a13e863feb7a63fafd3e8e0a92918f435697b /addons/payment_authorize/models/authorize.py
parent43f40ec4035eee1c76ceb37dd359397869c473b5 (diff)
parent087729f31b626b32c98bd3048bf7b63c1de73d38 (diff)
[MERGE] forward port of branch saas-9 up to 087729f
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 d4fc0ee9a9d..39575961969 100644
--- a/addons/payment_authorize/models/authorize.py
+++ b/addons/payment_authorize/models/authorize.py
@@ -69,7 +69,7 @@ class PaymentAcquirerAuthorize(models.Model):
'first_name': values.get('partner_first_name'),
'last_name': values.get('partner_last_name'),
'phone': values.get('partner_phone'),
- 'state': values.get('partner_state') and values['partner_state'].name or '',
+ 'state': values.get('partner_state') and values['partner_state'].code or '',
'billing_address': values.get('billing_partner_address'),
'billing_city': values.get('billing_partner_city'),
'billing_country': values.get('billing_partner_country') and values.get('billing_partner_country').name or '',
@@ -78,7 +78,7 @@ class PaymentAcquirerAuthorize(models.Model):
'billing_first_name': values.get('billing_partner_first_name'),
'billing_last_name': values.get('billing_partner_last_name'),
'billing_phone': values.get('billing_partner_phone'),
- 'billing_state': values.get('billing_partner_state') and values['billing_partner_state'].name or '',
+ 'billing_state': values.get('billing_partner_state') and values['billing_partner_state'].code or '',
}
temp_authorize_tx_values['returndata'] = authorize_tx_values.pop('return_url', '')
temp_authorize_tx_values['x_fp_hash'] = self._authorize_generate_hashing(temp_authorize_tx_values)