Skip to content

[16.0][OU-FIX] base: migrate translations for ir_actions objects - #6108

Open
sergiocorato wants to merge 1 commit into
OCA:16.0from
efatto:16.0-fix-base-translate-ir_actions-objects
Open

sergiocorato wants to merge 1 commit into
OCA:16.0from
efatto:16.0-fix-base-translate-ir_actions-objects

Conversation

@sergiocorato

@sergiocorato sergiocorato commented Nov 18, 2026 •

Copy link
Copy Markdown

Translations of ir.actions.* are lost during migration.
This PR fix this.

Assisted-by: pi.dev/deepseek-v4.1-flash

@OCA-git-bot OCA-git-bot added mod:openupgrade_scripts Module openupgrade_scripts series:16.0 labels Nov 18, 2026
@sergiocorato
sergiocorato force-pushed the 16.0-fix-base-translate-ir_actions-objects branch 6 times, most recently from 3ce0d6b to 828ad13 Compare November 20, 2026 15:03
@sergiocorato
sergiocorato marked this pull request as ready for review November 20, 2026 15:04
@rrebollo

Copy link
Copy Markdown

I can review this in exchange for a review of #6113 (18.0 product defaults migration). Would that work?

@sergiocorato

Copy link
Copy Markdown
Author

I can review this in exchange for a review of #6113 (18.0 product defaults migration). Would that work?

Sure, done!

@rrebollo rrebollo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe U could make comments shorter and/or also fix the help translations. Please

after the OpenUpgrade migration tests, and "ir.translation" is still
available at this stage.
"""
name_fields = [

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reproduced on 16.0: a translated ir.actions.server.help still falls back to English after this function runs, so action descriptions remain lost. pre-migration.py excludes help for these models and end-migration.py excludes it again, while this list restores only name; is that deliberately out of scope for this name-focused fix?

@sergiocorato sergiocorato Nov 25, 2026 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I added help to the migration script (it seems more a theoretical case, as only 1 help is writable by the user - not checked in a v.15 ui), and shortened the comments.
Thanks.

The name and help of ir.actions.* lose their translation during
the migration, keeping only the en_US value. The generic
pre-migration excludes these fields, so merge their ir_translation
records in the base post-migration, once the columns are jsonb and the
source table is still available. This cannot be done in an end-migration
script, because those run after the OpenUpgrade migration tests.

Assisted-by: pi.dev/deepseek-v4.1-flash
@sergiocorato
sergiocorato force-pushed the 16.0-fix-base-translate-ir_actions-objects branch from 828ad13 to 49c85f5 Compare November 25, 2026 15:06

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:openupgrade_scripts Module openupgrade_scripts series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants