OCA / partner-contact

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

[17.0][FIX]partner_industry_secondary: Properly calculate industry's parent name #1786

Closed manuelregidor closed 2 months ago

manuelregidor commented 2 months ago

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

HaraldPanten commented 2 months ago

/ocabot merge minor

OCA-git-bot commented 2 months ago

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 commented 2 months ago

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