Do not split on two lines if name is empty as it would display the address type on a new line in the report.
This happens because Odoo splits the display_name on \n character and discards the first element to get the address from the display_name. In which case, the address type would appear as part of the address.
In case this is still needed, an added context key allows to still display the address type.
This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖
Do not split on two lines if name is empty as it would display the address type on a new line in the report. This happens because Odoo splits the display_name on \n character and discards the first element to get the address from the display_name. In which case, the address type would appear as part of the address.
In case this is still needed, an added context key allows to still display the address type.