تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
122 أدوات العرض

I'm trying to migrate a module from Odoo v17 to v18. I ran the upgrade_code command, but I encountered an error. Here are the details:

  • Here is the command I used to launch the migration: 
python .\odoo-bin upgrade_code --addons-path "E:\etech-stage\arkeup-addons" --from 17.0
  • And here is the error I encountered: 
File "E:\Odoo\odoo_enterprise_v18\odoo_18.0+e.latest\odoo-18.0+e.20250624\odoo-bin", line 8, in <module>
    odoo.cli.main()
  File "E:\Odoo\odoo_enterprise_v18\odoo_18.0+e.latest\odoo-18.0+e.20250624\odoo\cli\command.py", line 66, in main
    o.run(args)
  File "E:\Odoo\odoo_enterprise_v18\odoo_18.0+e.latest\odoo-18.0+e.20250624\odoo\cli\upgrade_code.py", line 226, in run
    is_dirty = migrate(**vars(options))
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Odoo\odoo_enterprise_v18\odoo_18.0+e.latest\odoo-18.0+e.20250624\odoo\cli\upgrade_code.py", line 155, in migrate
    module.upgrade(file_manager)
  File "E:\Odoo\odoo_enterprise_v18\odoo_18.0+e.latest\odoo-18.0+e.20250624\odoo\upgrade_code\17.5-01-tree-to-list.py", line 21, in upgrade
    content = file.content
              ^^^^^^^^^^^^
  File "E:\Odoo\odoo_enterprise_v18\odoo_18.0+e.latest\odoo-18.0+e.20250624\odoo\cli\upgrade_code.py", line 80, in content
    self._content = self.path.read_text()
                    ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Asus Vivobook 16\AppData\Local\Programs\Python\Python311\Lib\pathlib.py", line 1059, in read_text
    return f.read()
           ^^^^^^^^
  File "<frozen codecs>", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 1941: invalid continuation byte

I don't have any idea how can I solve it. So I would appreciate help from the community.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
ODOO 18 Upgrade تم الحل
2
يونيو 25
8827
1
ديسمبر 24
4046
0
نوفمبر 24
1656
2
يوليو 24
3388
0
أبريل 24
2184