Loading time of Employees Module (hr) in odoo11 is high around 10-15 seconds in local server especially employees menu.
We had migrated odoo10 to 11 using openupgrade and during migration all the attachments were lost. From that time, we are facing this issue.
Now when we click on the employees kanban getting the below error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/odoo/odoo-11.0/odoo/fields.py", line 947, in __get__
value = record.env.cache.get(record, self)
File "/odoo/odoo-11.0/odoo/api.py", line 960, in get
value = self._data[field][record.id][key]
KeyError: <odoo.api.Environment object at 0x7f7319e66400>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/odoo/odoo-11.0/odoo/addons/base/ir/ir_attachment.py", line 100, in _file_read
r = base64.b64encode(open(full_path,'rb').read())
FileNotFoundError: [Errno 2] No such file or directory: '/odoo/.local/share/Odoo/filestore/odoo11/42/42d4bdc90c88d86476c8988269be21b991b04577'
2018-05-31 12:43:35,419 16507 INFO odoo11 odoo.addons.base.ir.ir_attachment: _read_file reading /odoo/.local/share/Odoo/filestore/odoo11/79/7982cf5f4c25f9818e2fddf8db4f13f4a5f6f6ad
Traceback (most recent call last):
How to get rid of this issue.