Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][OU-ADD] account: Migration to 17.0 #4668

Open
wants to merge 4 commits into
base: 17.0
Choose a base branch
from
Open

[17.0][OU-ADD] account: Migration to 17.0 #4668

wants to merge 4 commits into from

Conversation

hbrunn
Copy link
Member

@hbrunn hbrunn commented Nov 18, 2024

continuation of #4662

I tested this with my own DB, a few customers', and the demo database and couldn't find issues any more, so from my side I think it's done.

@hbrunn
Copy link
Member Author

hbrunn commented Nov 18, 2024

/ocabot migration account

@hbrunn
Copy link
Member Author

hbrunn commented Nov 18, 2024

tests are fixed in #4669, which also actually makes the files from the test folder run

@hbrunn
Copy link
Member Author

hbrunn commented Nov 18, 2024

/ocabot rebase

@hbrunn hbrunn force-pushed the 17.0-account branch 2 times, most recently from 3322759 to d16d0b3 Compare November 18, 2024 20:59
Copy link
Member

@zamberjo zamberjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and so far seems OK

Copy link

@celm1990 celm1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it, and it's working fine. This PR is blocking several others. Could it be prioritized? @pedrobaeza

Comment on lines +282 to +291
def convert_from_company_dependent(
env,
model_name,
origin_field_name,
destination_field_name,
origin_id_column_name,
model_table_name=None,
):
"""
Move a company-dependent field back to the model table.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it could be useful to move this function to openupgradelib to improve reusability. It could serve as a base utility for scenarios requiring the conversion of property fields to JSON during migrations to version 18.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a very different logic, you'll find the v18 function here

By now I've seen most of the migrations for v17 and didn't see another module where the case we have in the account module happens.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

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

Successfully merging this pull request may close these issues.

7 participants