OCA / partner-contact

Odoo Partner and Contact related addons
GNU Affero General Public License v3.0
207 stars 851 forks source link

[17.0][FIX] partner_display_name_line_break: Do not split with empty name #1882

Open grindtildeath opened 5 days ago

grindtildeath commented 5 days ago

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.

OCA-git-bot commented 1 hour ago

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). 🤖