Skip to content

Commit

Permalink
[OU-FIX] Base: Add help in ir.actions.client translation exclusions
Browse files Browse the repository at this point in the history
    In commit d2659fb, cyrilmanuel <cyriljeanneret@gmail.com>
    fixed the same issue for ir.actions.act_window translation

    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_actions_client are inherited by ir.actions fields), you cannot execute the sql request.
    It will failed because you cannot convert fields inherited.
  • Loading branch information
cvinh committed Dec 14, 2023
1 parent 753fef7 commit d8b8b3f
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 @@ -56,7 +56,7 @@ def update_translatable_fields(cr):
"ir.actions.act_window": ["name", "help"],
"ir.actions.act_url": ["name"],
"ir.actions.server": ["name"],
"ir.actions.client": ["name"],
"ir.actions.client": ["name", "help"],
"ir.actions.report": ["name"],
}
cr.execute(
Expand Down

0 comments on commit d8b8b3f

Please sign in to comment.