From 49be8cf7d53b1aed6c401c5116f0400ec7767344 Mon Sep 17 00:00:00 2001 From: Ruud Date: Thu, 2 May 2024 10:08:52 +0200 Subject: [PATCH 1/2] change name to display_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 0b38c4dd6e..5227da64d0 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.name, + "name1": partner.display_name, "locationType": location_type, # POSTAL or PHYSICAL "personType": person_type, # PERSON OR COMPANY "street": partner.street, 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 2/2] 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,