Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

grindtildeath
Copy link
Contributor

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.

@grindtildeath grindtildeath changed the title [170[FIX] partner_display_name_line_break: Do not split with empty name [17.0][FIX] partner_display_name_line_break: Do not split with empty name Oct 28, 2024
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.
@grindtildeath grindtildeath force-pushed the 17.0-fix-line_break_address_type branch from c219a1c to ec621ad Compare October 28, 2024 18:12
@OCA-git-bot
Copy link
Contributor

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

@rvalyi
Copy link
Member

rvalyi commented Nov 3, 2024

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 17.0-ocabot-merge-pr-1882-by-rvalyi-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 460677f into OCA:17.0 Nov 3, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at d9ec5d0. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants