Skip to content

Commit

Permalink
Merge pull request #173 from akretion/dpd-extra-label-field
Browse files Browse the repository at this point in the history
[IMP] Add possibility to add additional info in label
  • Loading branch information
florian-dacosta authored Apr 17, 2024
2 parents 0232a96 + a161e5e commit e03fbce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roulier/carriers/dpd_fr_soap/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""}
Expand Down
2 changes: 2 additions & 0 deletions roulier/carriers/dpd_fr_soap/templates/dpd_addressInfo.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<car:contact>{{ address.companyName }}</car:contact>
<car:name2>{{ address.firstName }}</car:name2>
<car:name3>{{ address.name3 }}</car:name3>
<car:name4>{{ address.name4 }}</car:name4>
<car:digicode1>{{ address.digicode1 }}</car:digicode1>
<car:digicode2>{{ address.digicode2 }}</car:digicode2>
<car:intercomid>{{ address.intercom }}</car:intercomid>
Expand Down

0 comments on commit e03fbce

Please sign in to comment.