-
-
Notifications
You must be signed in to change notification settings - Fork 431
[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
base: 14.0
Are you sure you want to change the base?
Conversation
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()`
@thomaspaulb here you go, let me know what you think! |
This PR has the |
@thomaspaulb can this be merged? thanks! |
/ocabot merge patch |
not sure if I have rights here |
This PR looks fantastic, let's merge it! |
Steps
sale
moduleenv["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 ofres.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.