Repository navigation
[16.0][OU-FIX] base: migrate translations for ir_actions objects - #6108
sergiocorato wants to merge 1 commit into
Conversation
3ce0d6b to
828ad13
Compare
|
I can review this in exchange for a review of #6113 (18.0 product defaults migration). Would that work? |
Sure, done! |
rrebollo
left a comment
There was a problem hiding this comment.
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 = [ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
828ad13 to
49c85f5
Compare
Translations of ir.actions.* are lost during migration.
This PR fix this.
Assisted-by: pi.dev/deepseek-v4.1-flash