Skip to content

Commit

Permalink
[OU-FIX] Base: Add help in ir.actions.act_window translation exclus…
Browse files Browse the repository at this point in the history
…ions

The pre-migration script excludes some fields from models, inherited by ir.actions fields.
The goal is to allow the conversion of all text fields in json or jsonb (mecanic in odoo 16),
but if the field is inherited by another fields in another model (in my example, name and help
in the model ir_act_window are inherited by ir.actions fields), you cannot execute the sql request.
It will failed because you cannot convert fields inherited.
  • Loading branch information
cyrilmanuel committed May 11, 2023
1 parent 3ebc931 commit d2659fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openupgrade_scripts/scripts/base/16.0.1.3/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def migrate(cr, version):
# exclude fields from translation update
exclusions = {
# ir.actions.* inherits the name column from ir.actions.actions
"ir.actions.act_window": ["name"],
"ir.actions.act_window": ["name", "help"],
"ir.actions.act_url": ["name"],
"ir.actions.server": ["name"],
"ir.actions.client": ["name"],
Expand Down

0 comments on commit d2659fb

Please sign in to comment.