Skip to content

[FIX] agreement_legal: use dedicated root menu on uninstall#116

Merged
OCA-git-bot merged 1 commit into
OCA:18.0from
ursais:18.0-fix-agreement_legal-106
Jul 3, 2026
Merged

[FIX] agreement_legal: use dedicated root menu on uninstall#116
OCA-git-bot merged 1 commit into
OCA:18.0from
ursais:18.0-fix-agreement_legal-106

Conversation

@max3903

@max3903 max3903 commented Jun 26, 2026

Copy link
Copy Markdown
Member

Fixes #106

Changes

  • Add a dedicated agreement_legal_menu_root instead of reusing agreement.agreement_menu
  • Hide the base agreement.agreement_menu_root while agreement_legal is installed
  • Add a regression test ensuring the legal root menu is separate from the base menu

Validation

  • pre-commit passed
  • module tests passed (oca_run_tests in ghcr.io/oca/oca-ci/py3.10-odoo18.0:latest, 52 tests, 0 failures)

Made with Cursor

@max3903 max3903 added this to the 18.0 milestone Jun 26, 2026
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @ygol,
some modules you are maintaining are being modified, check this out!

@max3903 max3903 requested review from tarteo and ygol June 26, 2026 22:21
@max3903 max3903 self-assigned this Jun 26, 2026

@tarteo tarteo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, but it seems the menu is still gone following the steps in the issue

Image

@max3903

max3903 commented Jul 1, 2026

Copy link
Copy Markdown
Member Author

@tarteo Menu item is there but inactive. I will see if we can reactivate it when agreement_legal is uninstalled.

@max3903 max3903 force-pushed the 18.0-fix-agreement_legal-106 branch from 2a2be0b to df3f97c Compare July 2, 2026 04:20
Fixes OCA#106

Use a dedicated legal app root menu instead of reusing agreement.agreement_menu,
hide the base app menu while legal is installed, and restore it via uninstall_hook.

Co-authored-by: Cursor <cursoragent@cursor.com>
@max3903 max3903 force-pushed the 18.0-fix-agreement_legal-106 branch from 99f5d6c to 3580ac0 Compare July 2, 2026 04:26
@max3903 max3903 requested a review from tarteo July 2, 2026 04:27
@max3903

max3903 commented Jul 3, 2026

Copy link
Copy Markdown
Member Author

@tarteo Can you please update your review?

@tarteo

tarteo commented Jul 3, 2026

Copy link
Copy Markdown
Member

Didn't have time to test it, but I trust you :)

@max3903

max3903 commented Jul 3, 2026

Copy link
Copy Markdown
Member Author

/ocabot merge minor

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-116-by-max3903-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 74aafd0 into OCA:18.0 Jul 3, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@max3903 max3903 deleted the 18.0-fix-agreement_legal-106 branch July 3, 2026 13:59
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.

Uninstallation of agreement_legal will remove the whole "Agreement" menu

3 participants