8000 [FIX] base: trans_implied_ids recursive computation by SirPyTech · Pull Request #1306 · OCA/OCB · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[FIX] base: trans_implied_ids recursive computation #1306

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

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from

Conversation

SirPyTech
Copy link

Steps

  1. Install sale module
  2. In the Odoo shell execute: env["res.groups"].get_groups_by_application()

Actual result
[..., (ir.module.category(52,), 'boolean', res.groups(22, 21, 20), (100, 'Other')) , ...]

Expected result
[..., (ir.module.category(52,), 'selection', res.groups(20, 21, 22), (5, 'Sales')) , ...]

Additional info
The result of get_groups_by_application is correct if the computation of res.groups.trans_implied_ids is called executing: env["res.groups"].search([])._compute_trans_implied()

Moved here from OCA/server-tools#3320.
I tried to add a test in sale module but didn't manage to add a test that would fail without this change.

This is already present in 15.0 and following versions of Odoo thanks to odoo@34d6f87.

1. Install `sale` module
2. In the Odoo shell execute: `env["res.groups"].get_groups_by_application()`

*Actual result*
`[...,  (ir.module.category(52,), 'boolean', res.groups(22, 21, 20), (100, 'Other')) , ...]`

*Expected result*
`[...,  (ir.module.category(52,), 'selection', res.groups(20, 21, 22), (5, 'Sales')) , ...]`

*Additional info*
The result of `get_groups_by_application` is correct if the computation of `res.groups.trans_implied_ids` is called executing:
`env["res.groups"].search([])._compute_trans_implied()`
@SirPyTech SirPyTech marked this pull request as ready for review July 2, 2025 12:56
@SirPyTech
Copy link
Author

@thomaspaulb here you go, let me know what you think!

@OCA-git-bot
Copy link

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

@francesco-ooops
Copy link

@thomaspaulb can this be merged? thanks!

@thomaspaulb
Copy link

/ocabot merge patch

@thomaspaulb
Copy link

not sure if I have rights here

@OCA-git-bot
Copy link

This PR looks fantastic, let's merge it!
Prepared branch 14.0-ocabot-merge-pr-1306-by-thomaspaulb-bump-patch, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Jul 9, 2025
Signed-off-by thomaspaulb
@SirPyTech
Copy link
Author

not sure if I have rights here

I believe that if you have the green check ✔️ in image
then you can merge

Thanks for merging!

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
0