Localize salutation of invoice address in editor/PDFs

This commit is contained in:
Richard Schreiber
2022-05-10 11:22:54 +02:00
committed by GitHub
parent ead70686b4
commit 40297b3d3f

View File

@@ -530,7 +530,10 @@ def _get_attendee_name_part(key, op, order, ev):
def _get_ia_name_part(key, op, order, ev):
return order.invoice_address.name_parts.get(key, '') if getattr(order, 'invoice_address', None) else ''
value = order.invoice_address.name_parts.get(key, '') if getattr(order, 'invoice_address', None) else ''
if key == 'salutation' and value:
return pgettext('person_name_salutation', value)
return value
def get_images(event):