diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-01-10 17:59:26 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-01-10 17:59:26 +0100 |
| commit | d11dc31e7ab553d2c0ae5eaaa59846b46d3cb20d (patch) | |
| tree | d5f1798b695f1a9f46a0bddb0f2bb289ba9ed9de /addons/payment_authorize/models | |
| parent | b87879c1f64c91a925f4814a03687d717791346c (diff) | |
| parent | 617652bbfed923934cb1d3b6185d302031f4af18 (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.py | 2 |
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") |
