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_industry_secondary: Properly calculate industry's parent name #1786

Merged

Conversation

manuelregidor
Copy link
Contributor

Before this fix, we noticed that some parents display names of the industries in the tree view were not calculated properly. For example:

fix_industry-secondary_1

However, the parent display name was properly displayed in the form view:

fix_industry_secondary_2

The reason is that "parent_id.display_name" dependency is missing in the _compute_display_name method in res.partner.industry dependencies list. After the fix, the parent display name is properly shown.

fix_industry_secondary_3

@manuelregidor manuelregidor marked this pull request as draft June 19, 2024 09:34
@manuelregidor manuelregidor changed the title [FIX]partner_industry_secondary: Properly calculate industry's parent name [WIP][17.0][FIX]partner_industry_secondary: Properly calculate industry's parent name Jun 19, 2024
@manuelregidor manuelregidor changed the title [WIP][17.0][FIX]partner_industry_secondary: Properly calculate industry's parent name [17.0][FIX]partner_industry_secondary: Properly calculate industry's parent name Jun 19, 2024
@manuelregidor manuelregidor marked this pull request as ready for review June 19, 2024 09:50
@HaraldPanten
Copy link
Contributor

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-1786-by-HaraldPanten-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 923862a into OCA:17.0 Jun 19, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@HaraldPanten HaraldPanten deleted the 17.0-fix-partner_industry_secondary branch June 19, 2024 10:15
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.

None yet

3 participants