Skip to content

[17.0][OU-FIX] account: Remove the unnecessary _convert_account_tax_description() method in post-migration. - #5377

Merged
pedrobaeza merged 1 commit into
OCA:17.0from
Tecnativa:17.0-ou-fix-account-TT57778-v3
Sep 15, 2025
Merged

[17.0][OU-FIX] account: Remove the unnecessary _convert_account_tax_description() method in post-migration.#5377
pedrobaeza merged 1 commit into
OCA:17.0from
Tecnativa:17.0-ou-fix-account-TT57778-v3

Conversation

@victoralmau

Copy link
Copy Markdown
Member

Remove the unnecessary _convert_account_tax_description() method in post-migration.

Related to #5369 (comment)

This change is not necessary because when migrating from 15 to 16, the description column in account_tax will already be json (

openupgrade_160.migrate_translations_to_jsonb(env, fields_spec)
), therefore, in v17, you only need to rename the column (this is already done in pre-migration).

Please @pedrobaeza and @hbrunn can you review it?

@Tecnativa TT57778

…tion() method in post-migration.

Related to OCA#5369 (comment)

This change is not necessary because when migrating from 15 to 16, the description column in account_tax
will already be json (https://github.com/OCA/OpenUpgrade/blob/4af8572c7f3e313773db558ba382b5ffd19a157c/openupgrade_scripts/scripts/base/16.0.1.3/end-migration.py#L39),
therefore, in v17, you only need to rename the column (this is already done in pre-migration).

TT57778
@hbrunn

hbrunn commented Sep 15, 2025

Copy link
Copy Markdown
Member

we should restore the state before your first pr though I think, with converting the column, right?

@victoralmau

Copy link
Copy Markdown
Member Author

we should restore the state before your first pr though I think, with converting the column, right?

There is no need to convert anything, the column is already json in the database (since 16).

@pedrobaeza pedrobaeza added this to the 17.0 milestone Sep 15, 2025
@pedrobaeza
pedrobaeza merged commit 1fa8d7c into OCA:17.0 Sep 15, 2025
3 of 4 checks passed
@pedrobaeza
pedrobaeza deleted the 17.0-ou-fix-account-TT57778-v3 branch September 15, 2025 13:45
@hbrunn

hbrunn commented Sep 15, 2025

Copy link
Copy Markdown
Member

not when it's not translated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants