تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3816 أدوات العرض

When we try to create a meeting from Odoo Calendar, the following error showing..

Error:
Odoo Server Error

Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 941, in __call__
return self.method(*args, **kw)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\http.py", line 519, in response_wrap
response = f(*args, **kw)
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\web\controllers\main.py", line 962, in call_kw
return self._call_kw(model, method, args, kwargs)
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\web\controllers\main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 755, in call_kw
return _call_kw_model(method, model, args, kwargs)
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 728, in _call_kw_model
result = method(recs, *args, **kwargs)
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\user_recent_log\models\user_log.py", line 43, in get_recent_log
fields_data = record.sudo().read(changes.keys())[0]
File "c:\program files (x86)\odoo 12.0\server\odoo\addons\calendar\models\calendar.py", line 1658, in read
fields2 = fields and fields[:]
TypeError: 'dict_keys' object is not subscriptable


NOTE: I have implemented some custom fields like Meeting Organizer, and two different html type fields. And also did a print format from the same model (calendar.event) itself.


Please help me out to solve this issue.

الصورة الرمزية
إهمال
الكاتب

Thank you very much.. I just uninstalled and its working perfect now. Appreciated..

أفضل إجابة

Main problem is in "record.sudo().read(changes.keys())[0]" code in user_recent_log module.

When you use changes.keys() in python3, it gives dict_keys and not the  list.  So should convert it into list.

Try following code:

record.sudo().read(dict(changes.keys()))[0]
الصورة الرمزية
إهمال
الكاتب

Greg, thanks for you reply.. My error was vanished out when i uninstalled the user recent log module, but sometime i would need the activity module, surely i will try your advice and let u know..

أفضل إجابة

It seems you have installed a community module (user_recent_log). So this error happening from that module. Try to  Uninstall and do one more calendar event. Or make sure the recent log module has working fine

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مايو 24
1519
0
سبتمبر 22
1878
0
فبراير 17
3407
0
يونيو 25
684
1
يوليو 24
1015