summaryrefslogtreecommitdiff
path: root/addons/payment_authorize/models
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-01-10 17:59:26 +0100
committerChristophe Simonis <chs@odoo.com>2019-01-10 17:59:26 +0100
commitd11dc31e7ab553d2c0ae5eaaa59846b46d3cb20d (patch)
treed5f1798b695f1a9f46a0bddb0f2bb289ba9ed9de /addons/payment_authorize/models
parentb87879c1f64c91a925f4814a03687d717791346c (diff)
parent617652bbfed923934cb1d3b6185d302031f4af18 (diff)
[MERGE] forward port branch 11.0 up to 617652bbfed
Diffstat (limited to 'addons/payment_authorize/models')
-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 ba5a14f7edd..d9b87437577 100644
--- a/addons/payment_authorize/models/authorize_request.py
+++ b/addons/payment_authorize/models/authorize_request.py
@@ -149,7 +149,7 @@ class AuthorizeAPI():
root = self._base_tree('createCustomerProfileRequest')
profile = etree.SubElement(root, "profile")
etree.SubElement(profile, "merchantCustomerId").text = 'ODOO-%s-%s' % (partner.id, uuid4().hex[:8])
- etree.SubElement(profile, "email").text = partner.email
+ etree.SubElement(profile, "email").text = partner.email or ''
payment_profile = etree.SubElement(profile, "paymentProfiles")
etree.SubElement(payment_profile, "customerType").text = 'business' if partner.is_company else 'individual'
billTo = etree.SubElement(payment_profile, "billTo")