Skip to Content
Menu
This question has been flagged
3 Replies
1341 Views

Hello,

Please, I need your help regarding the below issue. I have upgraded Odoo:10 to Odoo:11 and the below error  appears when I access to the web login page.

I tried to use database cleanup but the error still persist.

Thanks in advance for your support


  File "/usr/lib/python3/dist-packages/odoo/api.py", line 682, in call_kw_model

    result = method(recs, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_message.py", line 368, in message_fetch

    return self.search(domain, limit=limit).message_format()

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_message.py", line 439, in message_format

    if message['model'] and self.env[message['model']]._original_module:

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 771, in __getitem__

    return self.registry[model_name]._browse((), self)

  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 180, in __getitem__

    return self.models[model_name]

KeyError: 'hr_timesheet_sheet.sheet'

Avatar
Discard
Best Answer

This object has been removed in v11. Please uninstall "hr_timesheet_sheet" module from your v11 database.

Avatar
Discard
Best Answer

Hi,

Try uninstalling the module hr_timesheet_sheet from your v11 database.

Thanks

Avatar
Discard
Author Best Answer

Thanks a lot for your feedbacks.

Below the actions done according to your recommendations:

hr_timesheet_sheet has been uninstalled and removed from add-ons path.

I changed the web browser and I tried to access to my web login page but the below error still persist and appeared a lot of time when I navigate on my 
Odoo web page.

    return self.registry[model_name]._browse((), self)
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 180, in __getitem__
    return self.models[model_name]
KeyError: 'hr_timesheet_sheet.sheet'


Avatar
Discard
Author

Issue solved after model hr_timesheet_sheet deletion from mail_message table on Odoo V11 database

DELETE FROM mail_message WHERE model like '%hr_timesheet_sheet%';