summaryrefslogtreecommitdiff
path: root/addons/payment_authorize/models/authorize_request.py
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-07-23 09:55:56 +0200
committerMartin Trigaux <mat@odoo.com>2019-07-23 13:41:00 +0200
commite266c7c98a6a4b89c13eb7eb38709cc0251ea47f (patch)
tree1b27ca28cac9f1d8577ae2bf14d0682e8920f05f /addons/payment_authorize/models/authorize_request.py
parent5c705c51cd8377b1c6e1bb2513db34afe48189ee (diff)
parent5e4c1b370123dee4e6d6a91cd9582ba41c4d8bd4 (diff)
[MERGE] Forward port of 12.0 to saas-12.2 up to 5e4c1b370123dee
Diffstat (limited to 'addons/payment_authorize/models/authorize_request.py')
-rw-r--r--addons/payment_authorize/models/authorize_request.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_authorize/models/authorize_request.py b/addons/payment_authorize/models/authorize_request.py
index 922d9df1bf1..e3e65648ee0 100644
--- a/addons/payment_authorize/models/authorize_request.py
+++ b/addons/payment_authorize/models/authorize_request.py
@@ -226,7 +226,7 @@ class AuthorizeAPI():
etree.SubElement(customer, "email").text = partner.email or ''
response = self._authorize_request(root)
res = dict()
- if not response.find('customerProfileId'):
+ if response.find('customerProfileId') is None: # Warning: do not use bool(etree) as the semantics is very misleading
_logger.warning(
'Unable to create customer payment profile, data missing from transaction. Transaction_id: %s - Partner_id: %s'
% (transaction_id, partner)