From 7de5f67fa6c1f2229a71f2c543a97746a7433955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20=C4=90=E1=BA=A1i=20D=C6=B0=C6=A1ng?= Date: Sat, 27 Jul 2024 09:15:10 +0700 Subject: [PATCH] [FIX] account: description to invoice_label must be translatable before copy column --- openupgrade_scripts/scripts/account/17.0.1.2/pre-migration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openupgrade_scripts/scripts/account/17.0.1.2/pre-migration.py b/openupgrade_scripts/scripts/account/17.0.1.2/pre-migration.py index 3e6f2e13239c..f87b09b8cc63 100644 --- a/openupgrade_scripts/scripts/account/17.0.1.2/pre-migration.py +++ b/openupgrade_scripts/scripts/account/17.0.1.2/pre-migration.py @@ -1,6 +1,7 @@ # Copyright 2024 Viindoo Technology Joint Stock Company (Viindoo) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from openupgradelib import openupgrade +from odoo.tools.sql import convert_column_translatable _fields_renames = [ ( @@ -599,6 +600,7 @@ def migrate(env, version): """, ) openupgrade.rename_fields(env, _fields_renames) + convert_column_translatable(env.cr, "account_tax", "description", "jsonb") openupgrade.copy_columns(env.cr, _columns_copies) _am_create_delivery_date_column(env) _am_create_incoterm_location_column(env)