OCA / OpenUpgrade

Open source upgrade path for Odoo/OpenERP
https://oca.github.io/OpenUpgrade/
GNU Affero General Public License v3.0
719 stars 690 forks source link

Migration to version 16.0 #3681

Open legalsylvain opened 1 year ago

legalsylvain commented 1 year ago

Pending / done work

marielejeune commented 1 year ago

Hi, Is there any reason why some modules are not present in openupgrade_scripts/scripts? For example contacts, base_setup, http_routing and web_unsplash?

legalsylvain commented 1 year ago

Hi @marielejeune. The scripts files (diff.txt + noupdate.xml) are generated by this module https://github.com/OCA/server-tools/tree/16.0/upgrade_analysis.

I don't know why the modules are missing. You can run this module if you want to investigate. (note : if it's the first time, you have to run two instances 15 + 16 with upgrade_analysis installed on both, and then make the V16 communicate with the 15. It will create / update all the analysis).

kind regards.

remytms commented 1 year ago

@legalsylvain I've run again the upgrade_analysis module, with a database with base_setup installed. It creates the analysis files for base, and other module, but not for base_setup. Currently I don't know why.

Is the generation of the analysis file a requirement for writing migration scripts for this module in the OCA process ?

legalsylvain commented 1 year ago

Hi. 1) I think it's more a topic related to https://github.com/OCA/server-tools/tree/16.0/upgrade_analysis 2) Yes I saw that sometimes, there is no analysis file, and sometimes, there is an analysis file with minimal text. (nothing to do in the three part). But I don't know why.

Is the generation of the analysis file a requirement for writing migration scripts for this module in the OCA process ?

No. But if there is no file, I think that there is nothing to do. But you can write a pre- / post- migration file if you see that some scripts are required.

legalsylvain commented 1 year ago

Hi all. FYI, changes on account.tag will be done on 16.0 "stable" version. See : https://github.com/OCA/account-analytic/issues/551#issuecomment-1561224426

I guess that once done, we should regenerate analysis.txt file.

CC : @OCA/openupgrade-maintainers

pedrobaeza commented 1 year ago

Let's see first how it's handled. Not sure the path they are going to take. I suppose they are going to create an extra module for restoring the missing models and defaults, but it's just a theory.

duong77476-viindoo commented 1 year ago

Hi all. FYI, changes on account.tag will be done on 16.0 "stable" version. See : OCA/account-analytic#551 (comment)

I guess that once done, we should regenerate analysis.txt file.

CC : @OCA/openupgrade-maintainers

Are you going to regenerate the analyst fiels soon, i see some of them are outdated (eg: analytic)

legalsylvain commented 1 year ago

Hi @duong77476.

Thanks for your all your recent contribution.

Are you going to regenerate the analyst fiels soon, i see some of them are outdated (eg: analytic)

Could you try to do a PR on this subject? Basically, it's about playing with 2 instances of odoo. (15 and 16) with the upgrade_analysis module installed.

See : https://github.com/OCA/server-tools/tree/16.0/upgrade_analysis#upgrade-analysis

Let me know if you have questions !

duong77476-viindoo commented 1 year ago

@legalsylvain Sure no problem, i have run it before back in Odoo 15 Migration

mostafabarmshory commented 1 year ago

How could I check if account migration is done? can any one help?

legalsylvain commented 1 year ago

How could I check if account migration is done? can any one help?

Hi. account (and analytic) migration PR are referenced in this issue. You can review it and give feedback.

thanks !

mholthausen commented 1 year ago

Is there any reason that ir_* modules aren't listed here? Every time I run the migration script, some fields of theses tables aren't migrated (conversion into jsonb fields is missing in some of them)

pedrobaeza commented 1 year ago

They are not modules, but models. If there's anything missing, specify in a new issue exactly the fields.

marielejeune commented 7 months ago

Hi, I've opened a new PR to finish (I hope) the migration scripts for stock module: https://github.com/OCA/OpenUpgrade/pull/4291

robinkeunen commented 6 months ago

Hi, I see account_qr_code_sepa in the module list at module150-160.rst but not in the list above nor in openupgrade_scripts directory. Is there something I should do to add it ?

Same question for auth_totp_portal.

EDIT: I see the diffs are empty => marking them as done.

legalsylvain commented 6 months ago

not in the list above

this is the list of all the merged / pending PR.

EDIT: I see the diffs are empty => marking them as done.

yes. could you make a PR ?

parsonli commented 4 months ago

Hi, after I upgraded to 16. I found out all of translations are lost. more specific, product name and product attribute has only one languages now. Is this a normal thing or my database error thing?

duong77476-viindoo commented 4 months ago

Hi, after I upgraded to 16. I found out all of translations are lost. more specific, product name and product attribute has only one languages now. Is this a normal thing or my database error thing?

Probably a bug, my company struggling in migrate translation for html field (callable translation) and it's not perfect but still ok. For product name i'm not sure my company has same issue but no one say anything so i guest it fine. FYI, the translation migration we use is different compare to this openupgrade :v

legalsylvain commented 4 months ago

Hi, after I upgraded to 16. I found out all of translations are lost. more specific, product name and product attribute has only one languages now. Is this a normal thing or my database error thing?

hi please open a dedicated issue. This issue is to enumerate pending work. Thanks