Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5406 Lượt xem

I tried to migrate a demo DB in Odoo 8 with just HR application installed. But on trying migration using OpenUpgrade 9.0, got into this error.

    from openupgradelib import openupgrade_90

ImportError: cannot import name openupgrade_90


Has anybody came across with this error or any suggestions please

Ảnh đại diện
Huỷ bỏ

Did you find any solution? If so please share

Câu trả lời hay nhất

Hi,


OpenUpgrade underwent a refactor after Odoo 8. In Odoo 9 and later, the correct import is:


        from openupgradelib import openupgrade


The suffix _90 was never part of the library -- sometimes older community migration scripts or experimental branches had references to it.


So, this happens if:


       You’re using a custom or outdated migration script written for an obsolete branch, or


       You mixed openupgradelib (modern package) with an old OpenUpgrade repository clone that references openupgrade_90.


Your OpenUpgrade repository matches the target version.


         For migration from 8.0 > 9.0:


         git clone https://github.com/OCA/OpenUpgrade.git -b 9.0 openupgrade-9 cd openupgrade-9


Hope it helps.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 23
2845
1
thg 8 19
5169
1
thg 3 15
6204
1
thg 5 25
2746
1
thg 4 25
2959