İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
3461 Görünümler

Odoo 17 Community version installed on windows server 16


I installed a backend theme, it didn't work, after then i installed the default theme thinking that it will rollback whatever the installed theme may have done, so it now redirects me to website front page, and whenever i click on the settings page, apps, or any backend page it gives me the following error:


Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.


I checked the log and found the following:


2024-06-04 13:18:19,556 3208 ERROR odoo24 odoo.http: Exception during request handling. 
Traceback (most recent call last):
  File "", line 172, in template_190
  File "", line 154, in template_190_content
  File "", line 140, in template_190_t_call_0
AttributeError: 'res.users' object has no attribute 'sidebar_type'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Program Files\Odoo 17.0.20231130\server\odoo\ir_qweb.py", line 593, in _render
    result = ''.join(rendering)
  File "", line 178, in template_190
odoo.addons.base.models.ir_qweb.QWebException: Error while render the template
AttributeError: 'res.users' object has no attribute 'sidebar_type'
Template: web.webclient_bootstrap
Path: /t/t/t[5]
Node: 


Avatar
Vazgeç
En İyi Yanıt

Hi Loai Metwalli, 

Have you founded a good solution? I have exactly the same problem, investigating in the database since 24 hours, but I can't find any solution. 

Thank you in advance for your answer!

Avatar
Vazgeç

did you add any custom modules ? if yes, try upgrading that app from the command line

Yes, I add https://apps.odoo.com/apps/themes/17.0/muk_web_theme and then https://apps.odoo.com/apps/themes/17.0/code_backend_theme before understanding that installing a theme isn't uninstalling the previous automatically.

I uninstalled both of them, but I think that button “Uninstall” isn't really totally uninstalling modules. Then, I tried to use commands like :

`odoo -u all -d <database> --stop-after-init`

But nothing is working, I always have the issue.

En İyi Yanıt

Hi,
In order to resolve the error you can do the following

  • Enable debug mode
  • Navigate to Settings -> Technical -> User Interface -> Views
  • Search for view containing the field sidebar_type inside the view architecture
  • Delete the view or delete the field from the view
  • Refresh the screen and you wont have the error

    Thanks
Avatar
Vazgeç
Üretici

Thanks for your reply, I cannot reach the backend though so i need to do whatever solution from the pgadmin, i checked the logs again and found the first time this error occured as follows:

2024-06-04 10:17:30,836 4912 ERROR odoo24 odoo.addons.base_import_module.models.ir_module: Error while importing module
Traceback (most recent call last):
File "C:\Program Files\Odoo 17.0.20231130\server\odoo\addons\base_import_module\models\ir_module.py", line 250, in _import_zipfile
if self._import_module(mod_name, path, force=force, with_demo=with_demo):
File "C:\Program Files\Odoo 17.0.20231130\server\odoo\addons\base_import_module\models\ir_module.py", line 124, in _import_module
convert_xml_import(self.env, module, fp, idref, mode, noupdate)
File "C:\Program Files\Odoo 17.0.20231130\server\odoo\tools\convert.py", line 693, in convert_xml_import
obj.parse(doc.getroot())
File "C:\Program Files\Odoo 17.0.20231130\server\odoo\tools\convert.py", line 613, in parse
self._tag_root(de)
File "C:\Program Files\Odoo 17.0.20231130\server\odoo\tools\convert.py", line 567, in _tag_root
raise ParseError(msg) from None # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback
odoo.tools.convert.ParseError: while parsing file:/c:/windows/servic~2/locals~1/appdata/local/temp/tmpo5yickl6/muk_web_appsbar/views/res_users.xml:5
Error while validating view near:

<form string="Users" edit="1">
<widget name="notification_alert"/>
<field name="avatar_128" invisible="1"/>
<field name="image_1920" readonly="0" widget="image" class="oe_avatar" options="{&quot;preview_image&quot;: &quot;avatar_128&quot;}"/>
<h1>

Field "sidebar_type" does not exist in model "res.users"

View error context:
{'file': 'c:\\windows\\servic~2\\locals~1\\appdata\\local\\temp\\tmpo5yickl6\\muk_web_appsbar\\views\\res_users.xml',
'line': 3,
'name': 'res.users.form',
'view': ir.ui.view(2272,),
'view.model': 'res.users',
'view.parent': ir.ui.view(169,),
'xmlid': 'view_res_users_form'}

Üretici

Another inquiry, can i execute terminal commands while my odoo was installed via an executable installer in program files? if yes how can i do it as currently cmd doesn't accept odoo commands

you can try odoo update all command through terminal
./odoo-bin -c odoo-server.conf -d database_name -u all

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Oca 25
999
4
Eki 24
1388
0
Nis 24
1643
1
Nis 24
1605
3
Nis 24
1983