mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Merge branch 'imp/12.0/connector_opencart__empty_shipping_details' into '12.0'
imp/12.0/connector_opencart__empty_shipping_details into 12.0 See merge request hibou-io/hibou-odoo/suite!942
This commit is contained in:
@@ -287,6 +287,10 @@ class SaleOrderImporter(Component):
|
||||
|
||||
def _import_addresses(self):
|
||||
partner_values = self._get_partner_values()
|
||||
# If they only buy services, then the shipping details will be empty
|
||||
if partner_values.get('name', 'Undefined') == 'Undefined':
|
||||
partner_values = self._get_partner_values(info_string='payment_')
|
||||
|
||||
partners = self.env['res.partner'].search([
|
||||
('email', '=ilike', partner_values['email']),
|
||||
'|', ('active', '=', False), ('active', '=', True),
|
||||
|
||||
Reference in New Issue
Block a user