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

convert view domain to expr. #54

Closed
jeffery9 opened this issue Mar 13, 2024 · 1 comment
Closed

convert view domain to expr. #54

jeffery9 opened this issue Mar 13, 2024 · 1 comment

Comments

@jeffery9
Copy link

after Odoo 17, domain in view attrs must convert to expr.
there need tools to do this batchly.

can ref. to odoo/odoo#104741 and https://github.com/Gorash/odoo-view-pocalypse-convert

@desdelinux
Copy link

@KangOl Do you have a solution for migrating views to 17.0?

aj-fuentes added a commit to odoo-dev/upgrade-util that referenced this issue Apr 16, 2024
Since Odoo 17.0 we no longer allow for domains in `attrs` attributes of
view elements. Domains were converted to Python expressions. In this
commit we add some tooling for converting them.

The main entry point is the function `fix_attrs` -- see docstring for
details. An example usage function is `adapt_view`

Closes odoo#54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants