Notes Add-on Error - Flectra 2.0 Docker
Flectra Version
Flectra 2.0 - Docker latest release as of 08/31/21
Bug / Issue : Install notes add-on. Upon installation (installation is completed) Flectra returns error - see server error below
Relevant logs and/or screenshots
Error: Flectra Server Error
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/flectra/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/usr/lib/python3/dist-packages/flectra/http.py", line 683, in dispatch result = self._call_function(**self.params) File "/usr/lib/python3/dist-packages/flectra/http.py", line 359, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python3/dist-packages/flectra/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python3/dist-packages/flectra/http.py", line 347, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python3/dist-packages/flectra/http.py", line 912, in call return self.method(*args, **kw) File "/usr/lib/python3/dist-packages/flectra/http.py", line 531, in response_wrap response = f(*args, **kw) File "/usr/lib/python3/dist-packages/flectra/addons/web/controllers/main.py", line 1389, in call_kw return self._call_kw(model, method, args, kwargs) File "/usr/lib/python3/dist-packages/flectra/addons/web/controllers/main.py", line 1381, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python3/dist-packages/flectra/api.py", line 392, in call_kw result = _call_kw_model(method, model, args, kwargs) File "/usr/lib/python3/dist-packages/flectra/api.py", line 365, in _call_kw_model result = method(recs, *args, **kwargs) File "/usr/lib/python3/dist-packages/flectra/addons/web/models/models.py", line 168, in read_progress_bar for group in self._read_progress_bar(domain, group_by, progress_bar): File "/usr/lib/python3/dist-packages/flectra/addons/mail/models/mail_activity.py", line 802, in _read_progress_bar return super()._read_progress_bar(domain, group_by, progress_bar) File "/usr/lib/python3/dist-packages/flectra/addons/web/models/models.py", line 183, in _read_progress_bar return self.read_group(domain, [fname], [group_by, fname], lazy=False) File "/usr/lib/python3/dist-packages/flectra/addons/note/models/note.py", line 131, in read_group return super(Note, self).read_group(domain, fields, groupby, offset=offset, limit=limit, orderby=orderby, lazy=lazy) File "/usr/lib/python3/dist-packages/flectra/models.py", line 2254, in read_group result = self._read_group_raw(domain, fields, groupby, offset=offset, limit=limit, orderby=orderby, lazy=lazy) File "/usr/lib/python3/dist-packages/flectra/models.py", line 2291, in _read_group_raw assert gb_field.store and gb_field.column_type, "Fields in 'groupby' must be regular database-persisted fields (no function or related fields), or function fields with store=True" Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/flectra/http.py", line 639, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/flectra/http.py", line 315, in _handle_exception raise exception.with_traceback(None) from new_cause AssertionError: Fields in 'groupby' must be regular database-persisted fields (no function or related fields), or function fields with store=True
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)