Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
113 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
giu 25
8817
1
dic 24
4038
0
nov 24
1653
2
lug 24
3379
0
apr 24
2182