Mail Activity Board
by SDi https://github.com/OCA/social , David Juaneda https://github.com/OCA/social , Sodexis https://github.com/OCA/social , ACSONE SA/NV https://github.com/OCA/social , Odoo Community Association (OCA) https://github.com/OCA/socialAvailability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Calendar (calendar)
• Dashboards (board) • Discuss (mail) |
Lines of code | 470 |
Technical Name |
mail_activity_board |
License | AGPL-3 |
Website | https://github.com/OCA/social |
Versions | 12.0 11.0 13.0 14.0 15.0 16.0 |
Mail Activity Board
This module adds an activity board with form, tree, kanban, calendar, pivot, graph and search views.
Table of contents
Usage
To use this module, you need to:
- Access to the views from menu Boards.
A smartButton of activities is added in the mail thread from form view. From this smartButton is linked to the activity board, to the view tree, which shows the activities related to the opportunity.
From the form view of the activity you can navigate to the origin of the activity.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- SDi
- David Juaneda
- ACSONE SA/NV
Contributors
- SDI:
- David Juaneda
- ForgeFlow:
- Miquel Raïch (miquel.raich@forgeflow.com)
- Pesol:
- Pedro Gonzalez (pedro.gonzalez@pesol.es)
- ACSONE SA/NV
- Laurent Mignon <laurent.mignon@acsone.eu>
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
This module is part of the OCA/social project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
Hello, I installed this module through odoo.sh and it is well and functional. My problem is that I try to access the activity.mail model via xml-rpc to get the activity data open and closed but I have an error querying without parameters. This is my script:
activities = models.execute_kw(db, uid, password,'mail.activity','search_read',[], {'fields': []})
and that is the bug:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\xmlrpc\client.py", line 1116, in __call__
return self.__send(self.__name, args)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\xmlrpc\client.py", line 1458, in __request
response = self.__transport.request(
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\xmlrpc\client.py", line 1160, in request
return self.single_request(host, handler, request_body, verbose)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\xmlrpc\client.py", line 1176, in single_request
return self.parse_response(resp)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\xmlrpc\client.py", line 1348, in parse_response
return u.close()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\xmlrpc\client.py", line 662, in close
raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault 1: 'Traceback (most recent call last):\n File "/home/odoo/src/odoo/odoo/api.py", line 745, in get\n value = self._data[field][record._ids[0]]\nKeyError: 22\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/home/odoo/src/odoo/odoo/fields.py", line 1037, in __get__\n value = env.cache.get(record, self)\n File "/home/odoo/src/odoo/odoo/api.py", line 751, in get\n raise CacheMiss(record, field)\nodoo.exceptions.CacheMiss: (\'mail.activity(22,).can_write\', None)\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/home/odoo/src/odoo/odoo/addons/base/controllers/rpc.py", line 69, in xmlrpc_2\n response = self._xmlrpc(service)\n File "/home/odoo/src/odoo/odoo/addons/base/controllers/rpc.py", line 49, in _xmlrpc\n result = dispatch_rpc(service, method, params)\n File "/home/odoo/src/odoo/odoo/http.py", line 139, in dispatch_rpc\n result = dispatch(method, params)\n File "/home/odoo/src/odoo/odoo/service/model.py", line 41, in dispatch\n res = fn(db, uid, *params)\n File "/home/odoo/src/odoo/odoo/service/model.py", line 174, in execute_kw\n return execute(db, uid, obj, method, *args, **kw or {})\n File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper\n return f(dbname, *args, **kwargs)\n File "/home/odoo/src/odoo/odoo/service/model.py", line 181, in execute\n res = execute_cr(cr, uid, obj, method, *args, **kw)\n File "/home/odoo/src/odoo/odoo/service/model.py", line 165, in execute_cr\n result = odoo.api.call_kw(recs, method, args, kw)\n File "/home/odoo/src/odoo/odoo/api.py", line 383, in call_kw\n result = _call_kw_model(method, model, args, kwargs)\n File "/home/odoo/src/odoo/odoo/api.py", line 356, in _call_kw_model\n result = method(recs, *args, **kwargs)\n File "/home/odoo/src/odoo/odoo/models.py", line 4951, in search_read\n result = records.read(fields)\n File "/home/odoo/src/odoo/odoo/models.py", line 2965, in read\n vals[name] = convert(record[name], record, use_name_get)\n File "/home/odoo/src/odoo/odoo/models.py", line 5731, in __getitem__\n return self._fields[key].__get__(self, type(self))\n File "/home/odoo/src/odoo/odoo/fields.py", line 1061, in __get__\n self.compute_value(recs)\n File "/home/odoo/src/odoo/odoo/fields.py", line 1146, in compute_value\n records._compute_field_value(self)\n File "/home/odoo/src/odoo/odoo/models.py", line 4003, in _compute_field_value\n getattr(self, field.compute)()\n File "/home/odoo/src/odoo/addons/mail/models/mail_activity.py", line 206, in _compute_can_write\n valid_records = self._filter_access_rules(\'write\')\n File "/home/odoo/src/odoo/addons/mail/models/mail_activity.py", line 241, in _filter_access_rules\n return self._filter_access_rules_remaining(valid, operation, \'_filter_access_rules\')\n File "/home/odoo/src/odoo/addons/mail/models/mail_activity.py", line 290, in _filter_access_rules_remaining\n valid_doc_ids = getattr(self.env[doc_model].browse(doc_ids), filter_access_rules_method)(doc_operation)\n File "/home/odoo/src/odoo/odoo/models.py", line 3342, in _filter_access_rules\n for it in self._ids\n File "/home/odoo/src/odoo/odoo/models.py", line 3343, in <listcomp>\n if not (it or it.origin) or (it or it.origin) in valid_ids\nAttributeError: \'int\' object has no attribute \'origin\'\n'>
If i put parameters in a domain of function, its return void []
activities = models.execute_kw(db, uid, password,'mail.activity','search_read',[['&',['done','=','False'],['active','=','True']]], {'fields': []})
Can you helpme please, i cant catch the issue
Regards