mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[IMP] delivery_fedex_hibou: consider address residential if the parent is a company
This commit is contained in:
committed by
Jared Kipe
parent
22944c6443
commit
51d9dada5b
@@ -65,7 +65,7 @@ class DeliveryFedex(models.Model):
|
||||
def _get_fedex_recipient_is_residential(self, partner):
|
||||
if self.fedex_service_type.find('HOME') >= 0:
|
||||
return True
|
||||
return not partner.is_company
|
||||
return not (partner.is_company or partner.parent_id.is_company)
|
||||
|
||||
"""
|
||||
Overrides to use Hibou Delivery methods to get shipper etc. and to add 'transit_days' to result.
|
||||
|
||||
Reference in New Issue
Block a user