Skip to content

Commit

Permalink
[FIX] account: description to invoice_label must be translatable before
Browse files Browse the repository at this point in the history
copy column
  • Loading branch information
duong77476-viindoo committed Jul 27, 2024
1 parent de6cc3c commit 7de5f67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openupgrade_scripts/scripts/account/17.0.1.2/pre-migration.py
Original file line number Diff line number Diff line change
@@ -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 = [
(
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7de5f67

Please sign in to comment.