Skip to content
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

[14.0] Many groups under with application(category_id) as Invoicing will crash odoo while opening users menu #72201

Open
omalbastin opened this issue Jun 15, 2021 · 7 comments
Labels
14.0 Framework General frontend/backend framework issues

Comments

@omalbastin
Copy link

omalbastin commented Jun 15, 2021

Impacted versions: 14.0

Steps to reproduce: Go to groups, create atleast 8 groups with application(category id ) as Invoicing (xml id:base.module_category_accounting_accounting). Then refresh the page and go to users.

Current behavior: Browser crashes because of large amount of data to load.

Expected behavior: It should load without any issue

Video/Screenshot link (optional): Database I have tested: https://8309272-14-0-all.runbot40.odoo.com
I have tested by creating 8 test groups.

Support ticket number submitted via odoo.com/help (optional):

@pedrobaeza
Copy link
Collaborator

Which crash? The traceback? If JS, please report it with debug=assets mode enabled.

@omalbastin
Copy link
Author

omalbastin commented Jun 16, 2021

@pedrobaeza it is not a issue from JS and no traceback on this case. It is only for the res.users menu. It is from the load_views and further investigating, it is from fields_get() in res.users. For the purpose of translation in Invoicing category, a combination of group id is made and for each combination a dynamic field is created. So if there are n groups under the Invoicing, then n! additional fields are created. The size of data becomes huge.

@pedrobaeza
Copy link
Collaborator

I didn't say it was JS, just saying that if JS, do that thing. If it's not JS, then paste the Python traceback.

@omalbastin
Copy link
Author

no python traceback too. The size of data becomes huge with increase in number of groups inside the Invoicing category. If 10 new groups were added, then 3628800 new fields are added additionally

@pedrobaeza
Copy link
Collaborator

Did you properly stack them, respecting the hierarchy?

@omalbastin
Copy link
Author

not in the runbot. but yes, when i tried in my local. These groups were like CRUD access to different models and top of it comes the billing group

@pedrobaeza
Copy link
Collaborator

Not sure if this limitation is expected, but tagging the issue for letting Odoo team to further analyze.

@pedrobaeza pedrobaeza added 14.0 Framework General frontend/backend framework issues labels Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
14.0 Framework General frontend/backend framework issues
Projects
None yet
Development

No branches or pull requests

2 participants