Skip to content

Conversation

@atgalvez08
Copy link

@atgalvez08 atgalvez08 commented Jan 8, 2026

@BinhexTeam

This PR migrates the addon project_tag_hierarchy to Odoo 17.0 using oca-port, preserving the original addon history.

Main changes introduced during the migration:

  • Replace the deprecated name_get override with a computed display_name field using _compute_display_name, following Odoo 17 core guidelines.
  • Remove the custom recursion constraint on parent_id, as Odoo 17 already enforces recursion detection at core level for models using _parent_store, raising a UserError before model constraints are evaluated.
  • Add a test to explicitly cover recursion detection, aligned with the actual behavior of the Odoo 17 core.
  • Update tests to comply with OCA testing guidelines for Odoo 17 (TransactionCase and proper test tagging).

Fixes #1191

@atgalvez08 atgalvez08 force-pushed the 17.0-mig-project_tag_hierarchy branch from 69ca86e to 076cf5b Compare January 8, 2026 12:25
@atgalvez08 atgalvez08 marked this pull request as ready for review January 9, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants