-
Notifications
You must be signed in to change notification settings - Fork 23.1k
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
[Wish] View dicts attributes and domain inheritance improvement #56661
Comments
As an alternative, you can use https://github.com/OCA/server-tools/tree/12.0/base_view_inheritance_extension |
To be honest, I am new at odoo and python development, but, I would like to try, I already see that string manipulation is tricky and there should be an alternative. My english and programming skills are not the best. But I could try to modify the current view engine. Could you provide me where I should look up? |
For your current level, better that you depend on the proposed module and use its mechanism for what you want. |
Hi, i have similar problem, i use module I try change attrs readonly on field partner_type error is load current json https://github.com/OCA/server-tools/blob/13.0/base_view_inheritance_extension/models/ir_ui_view.py#L115 I tested on V13 but i see on V12 is diff to V13. my code is bad or is problem of library??? |
Current behavior:
If you want to overwrite some attribute which value must to be and dict, for example, attrs, you need to rewrite the original value with your changes. The problem with this is when two modules overwrite that attribute in that tag.
For example:
Original Module:
Module A trying to modifying attrs:
Module B trying to modifying attrs:
So... to get this work, A or B needs to know each other their invisible domain... And to know the exact values that the Original Module has.
Request:
It would be fixed if we can modify, add or remove by 'key'. Something like:
Module A now can do
And Module B can now do this
And if we can be allowed to add domains so:
Module A:
Module B:
The final Original Module domain in the final view will be
This can be added to context attributes and domain.
The text was updated successfully, but these errors were encountered: