Skip to Content
Menu
This question has been flagged
1 Reply
1993 Views

Hi everyone:

(Odoo 11 in Windows)

I was trying to show tags in the Pivot View of Analytic entries and I made the terrible choice off adding this line : 

<field name="tags_id" widget=many2many_tags type="row"/>

Now I can´t enter in the Pivot view because the system show me an error. I just wanna now if there is any possible way to erase that line and revert what I did. I need to use that view because is the only way that I can export the information to excel.

Please, I hope someone can help me with this

This is the error

Traceback (most recent call last):
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line
651, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line
310, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "C:\Program Files (x86)\Odoo
11.0\server\odoo\tools\pycompat.py", line 87, in reraise
    raise value
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line
693, in dispatch
    result = self._call_function(**self.params)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line
342, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "C:\Program Files (x86)\Odoo
11.0\server\odoo\service\model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line
335, in checked_call
    result = self.endpoint(*a, **kw)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line
937, in __call__
    return self.method(*args, **kw)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line
515, in response_wrap
    response = f(*args, **kw)
  File "c:\program files (x86)\odoo
11.0\server\odoo\addons\web\controllers\main.py", line 934, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "c:\program files (x86)\odoo
11.0\server\odoo\addons\web\controllers\main.py", line 926, in
_call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\api.py", line
687, in call_kw
    return call_kw_model(method, model, args, kwargs)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\api.py", line
672, in call_kw_model
    result = method(recs, *args, **kwargs)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line
1909, in read_group
    result = self._read_group_raw(domain, fields, groupby,
offset=offset, limit=limit, orderby=orderby, lazy=lazy)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line
1947, 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"
AssertionError: Fields in 'groupby' must be regular database-persisted
fields (no function or related fields), or function fields with
store=True

Thanks



Avatar
Discard
Author Best Answer

With help I already solved the problem. I posting the answer in case someone needs it. With the developing mode active in Settings/ Technical  /Views, I searched for the view that was affected. Then in structure, I erased the line that coused the problem. That was all. Learning every day of errors. :-)

Avatar
Discard