Skip to content

Commit

Permalink
Merge PR #689 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by sebalix
  • Loading branch information
OCA-git-bot committed Oct 4, 2023
2 parents 93cb9b1 + 453ff3f commit eb9d108
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions delivery_postlogistics/postlogistics/web_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ def _prepare_customer(self, picking):
if picking.picking_type_id.code != "outgoing":
partner = picking.partner_id

if not partner.name:
raise exceptions.UserError(_("Customer name is required."))
customer = {
"name1": self._sanitize_string(partner.name),
"street": self._sanitize_string(partner.street),
Expand Down

0 comments on commit eb9d108

Please sign in to comment.