From db88b63ad82e8889c0774aa465c9f9675fadcefa Mon Sep 17 00:00:00 2001 From: RuudFreshfilter <149362646+RuudFreshfilter@users.noreply.github.com> Date: Fri, 29 Nov 2024 10:47:35 +0100 Subject: [PATCH] change partner.name --- delivery_schenker/models/delivery_carrier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delivery_schenker/models/delivery_carrier.py b/delivery_schenker/models/delivery_carrier.py index 5227da64d0..33a84b01f4 100644 --- a/delivery_schenker/models/delivery_carrier.py +++ b/delivery_schenker/models/delivery_carrier.py @@ -266,7 +266,7 @@ def _prepare_schenker_address( """ vals = { "type": address_type, - "name1": partner.display_name, + "name1": partner.name or partner.commercial_partner_id.name, "locationType": location_type, # POSTAL or PHYSICAL "personType": person_type, # PERSON OR COMPANY "street": partner.street,