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][MIG] digest: Nothing to do #3783

Merged
merged 1 commit into from
Jul 6, 2023
Merged

Conversation

marielejeune
Copy link
Contributor

No description provided.

@sbidoul
Copy link
Member

sbidoul commented Mar 15, 2023

/ocabot migration digest

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Mar 15, 2023
@marielejeune marielejeune force-pushed the 16.0-digest-mle branch 2 times, most recently from b19f619 to 5de362c Compare March 27, 2023 14:39
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have to load the noupdate_changes.xml file and delete translations (if applicable), although right now with new translation system, it should be checked how it works.

@legalsylvain
Copy link
Contributor

@marielejeune
Copy link
Contributor Author

Hi @legalsylvain, done.
I'm not sure however what to do with templates digest_mail_layout and digest_section_mobile. I don't think they are translated?

@MiquelRForgeFlow
Copy link
Contributor

Hi @legalsylvain, done. I'm not sure however what to do with templates digest_mail_layout and digest_section_mobile. I don't think they are translated?

digest_mail_layout doesn't seem to have "translatable text", but digest_section_mobile has it. I would put both in the _translations_to_delete list.

@marielejeune
Copy link
Contributor Author

@MiquelRForgeFlow thanks, done

@legalsylvain
Copy link
Contributor

legalsylvain commented Jul 5, 2023

@pedrobaeza : could you update your review ?
Merging this PR will unblock a lot of PRs.

legalsylvain

This comment was marked as outdated.

@OCA OCA deleted a comment from OCA-git-bot Jul 5, 2023
@legalsylvain
Copy link
Contributor

legalsylvain commented Jul 5, 2023

@MiquelRForgeFlow @duong77476 it look like the function delete_record_translations changed in OCA/openupgradelib#328 and OCA/openupgradelib#335 is failing.
Could you take a look ?

   File "/home/runner/work/OpenUpgrade/OpenUpgrade/openupgrade/openupgrade_scripts/scripts/digest/16.0.1.1/post-migration.py", line 20, in migrate
    openupgrade.delete_record_translations(env.cr, "digest", _translations_to_delete)
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/openupgradelib/openupgrade.py", line 2696, in delete_record_translations
    logged_query(cr, query, (record_id,))
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/openupgradelib/openupgrade.py", line 1681, in logged_query
    cr.execute(query, args)
  File "/home/runner/work/OpenUpgrade/OpenUpgrade/odoo/odoo/sql_db.py", line 321, in execute
    res = self._obj.execute(query, params)
psycopg2.errors.FeatureNotSupported: source for a multiple-column UPDATE item must be a sub-SELECT or ROW() expression
LINE 3:                 SET (name) = (jsonb_build_object('en_US', na...

@ndd-odoo
Copy link
Contributor

ndd-odoo commented Jul 6, 2023

@MiquelRForgeFlow @duong77476 it look like the function delete_record_translations changed in OCA/openupgradelib#328 and OCA/openupgradelib#335 is failing. Could you take a look ?

   File "/home/runner/work/OpenUpgrade/OpenUpgrade/openupgrade/openupgrade_scripts/scripts/digest/16.0.1.1/post-migration.py", line 20, in migrate
    openupgrade.delete_record_translations(env.cr, "digest", _translations_to_delete)
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/openupgradelib/openupgrade.py", line 2696, in delete_record_translations
    logged_query(cr, query, (record_id,))
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/openupgradelib/openupgrade.py", line 1681, in logged_query
    cr.execute(query, args)
  File "/home/runner/work/OpenUpgrade/OpenUpgrade/odoo/odoo/sql_db.py", line 321, in execute
    res = self._obj.execute(query, params)
psycopg2.errors.FeatureNotSupported: source for a multiple-column UPDATE item must be a sub-SELECT or ROW() expression
LINE 3:                 SET (name) = (jsonb_build_object('en_US', na...

Working on it at OCA/openupgradelib#337, already test by check out with this PR

@legalsylvain
Copy link
Contributor

Thanks @duong77476 !

@MiquelRForgeFlow
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-3783-by-MiquelRForgeFlow-bump-nobump, awaiting test results.

@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at ce32134. Thanks a lot for contributing to OCA. ❤️

@OCA-git-bot OCA-git-bot merged commit ce32134 into OCA:16.0 Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants