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

[16.0]Website Migration, in multilingual custom views #4263

Closed
dansanti opened this issue Dec 18, 2023 · 0 comments · Fixed by OCA/openupgradelib#357
Closed

[16.0]Website Migration, in multilingual custom views #4263

dansanti opened this issue Dec 18, 2023 · 0 comments · Fixed by OCA/openupgradelib#357
Assignees
Labels

Comments

@dansanti
Copy link

When multilingual is activated , query result a json instead a txt

`
File "/opt/odoo/custom_addons/16.0/openupgrade/openupgrade_framework/odoo_patch/odoo/modules/migration.py", line 18, in migrate_module
MigrationManager.migrate_module._original_method(self, pkg, stage)
File "/opt/odoo/16.0/odoo/modules/migration.py", line 183, in migrate_module
migrate(self.cr, installed_version)
File "/opt/odoo/env/16.0/lib/python3.10/site-packages/openupgradelib/openupgrade.py", line 2280, in wrapped_function
func(
File "/opt/odoo/custom_addons/16.0/openupgrade/openupgrade_scripts/scripts/website/16.0.1.0/end-migration.py", line 81, in migrate
convert_custom_qweb_templates_bootstrap_4to5(env)
File "/opt/odoo/custom_addons/16.0/openupgrade/openupgrade_scripts/scripts/website/16.0.1.0/end-migration.py", line 26, in convert_custom_qweb_templates_bootstrap_4to5
_convert_field_bootstrap_4to5_sql(env.cr, "ir_ui_view", "arch_db", ids=view_ids)
File "/opt/odoo/env/16.0/lib/python3.10/site-packages/openupgradelib/openupgrade_160.py", line 403, in _convert_field_bootstrap_4to5_sql
cr.execute(
File "/opt/odoo/16.0/odoo/sql_db.py", line 315, in execute
res = self._obj.execute(query, params)

psycopg2.errors.InvalidTextRepresentation:
LINE 1: UPDATE "ir_ui_view" SET "arch_db" = '{''en_US'': ''<?xml ver
`

To Reproduce

Steps to reproduce the behavior:

  1. active 2 or more language
  2. edit website front
  3. try migration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants