Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
372 Näkymät

Hello, 

I have once developed a view in the helpdesk and I deleted the file. 

I try to install the standard helpdesk module on my localhost, but I get the the following error. The file is gone and I don't see myself adding the view in the Odoo source code. 

Any one an idea. 

 Traceback (most recent call last):

  File "C:\Users\ValentinVanderstraet\odoo\odoo\odoo\misc.py", line 226, in file_path

    raise FileNotFoundError("File not found: " + file_path)

FileNotFoundError: File not found: helpdesk\views/helpdesk_ticket_quick_create_views.xml

Avatar
Hylkää
Paras vastaus

I'm unsure about why your path in that error message would be odoo/misc.py, however, there is indeed a odoo/tools/misc.py that may raise a FileNotFoundError in line 226: https://github.com/odoo/odoo/blob/18.0/odoo/tools/misc.py#L226

The error indicates that a manifest files holds the mentioned path (views/helpdesk_ticket_quick_create_views.xml). If you've previously directly modified the source code of the helpdesk module (which your really shouldn't do) you will most likely find that path in helpdesk/__manifest__.py
In any case, if your view was working at some point and you've just somewhen deleted the xml file only, there must a reference in a manifest file to it remaining.

Since you're setup is running on a Windows machine, you may refer to this post to find files with a specific (namely 'helpdesk_ticket_quick_create_views.xml') content: https://superuser.com/questions/1090076/how-do-you-perform-a-search-of-filenames-and-contents-without-using-the-index-i

After removing the path from the manifest file, make sure you restart your Odoo service.

Avatar
Hylkää