From 7a301e1e3a6b00446118f3cbb6bdaf09436ad0b0 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Wed, 3 Apr 2024 15:55:44 +0200 Subject: [PATCH] [IMP] Add possibility to add additional info in label --- roulier/carriers/dpd_fr_soap/api.py | 2 ++ roulier/carriers/dpd_fr_soap/templates/dpd_addressInfo.xml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/roulier/carriers/dpd_fr_soap/api.py b/roulier/carriers/dpd_fr_soap/api.py index 55f236e..3f741a4 100644 --- a/roulier/carriers/dpd_fr_soap/api.py +++ b/roulier/carriers/dpd_fr_soap/api.py @@ -133,6 +133,8 @@ def _to_address(self): schema = super(DpdApi, self)._to_address() # , 'description': """First name""", schema["firstName"] = {"default": "", "coerce": "accents"} + schema["name3"] = {"default": ""} + schema["name4"] = {"default": ""} schema["door1"] = {"default": ""} # 'description': """Door code 1""" schema["door2"] = {"default": ""} # 'description': """Door code 2"""} schema["intercom"] = {"default": ""} # 'description': """Intercom"""} diff --git a/roulier/carriers/dpd_fr_soap/templates/dpd_addressInfo.xml b/roulier/carriers/dpd_fr_soap/templates/dpd_addressInfo.xml index 1170b3c..970cc1b 100644 --- a/roulier/carriers/dpd_fr_soap/templates/dpd_addressInfo.xml +++ b/roulier/carriers/dpd_fr_soap/templates/dpd_addressInfo.xml @@ -1,5 +1,7 @@ {{ address.companyName }} {{ address.firstName }} +{{ address.name3 }} +{{ address.name4 }} {{ address.digicode1 }} {{ address.digicode2 }} {{ address.intercom }}