minor fix
This commit is contained in:
parent
5f5d200e7e
commit
2f8cb36176
|
@ -82,7 +82,8 @@ class MercadoLibre(SaleWebChannel):
|
|||
City = _pool.get('party.city_code')
|
||||
Party = _pool.get('party.party')
|
||||
PartyObligationTax = _pool.get('party.obligation_tax')
|
||||
email = customer['email']
|
||||
email = customer.get('email', '@')
|
||||
print('customer', customer)
|
||||
shipment_address, phone, city = '', '', None
|
||||
if customer.get('receiver_address'):
|
||||
receiver_address = customer['receiver_address']
|
||||
|
@ -95,7 +96,7 @@ class MercadoLibre(SaleWebChannel):
|
|||
])
|
||||
if cities:
|
||||
city = cities[0]
|
||||
customer_name = customer['first_name'] + ' ' + customer['last_name']
|
||||
customer_name = customer['billing_info']['first_name'] + ' ' + customer['billing_info']['last_name']
|
||||
type_document = '13'
|
||||
type_person = 'persona_natural'
|
||||
if customer['billing_info']['doc_type'] == 'NIT':
|
||||
|
|
Loading…
Reference in New Issue