Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
137 Zobrazení

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.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
čvn 25
8838
1
pro 24
4054
0
lis 24
1662
2
čvc 24
3395
0
dub 24
2190