odoo / odoo/docker

Odoo 13 Community Partner Ledger not working.

Open
#314 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
1.2k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Hi All

When I try to open Odoo Default Partner Ledger it is not working and giving following error. I do not have any third party modules in my DB now. But if I install to get third party partner ledger it fetches wrong debit and credit report. In some companies ledger paid shows in the report and unpaid dosen't appear at all. If anyone come across such issues please help me to solve it as I am just a beginner

Error:
Odoo Server Error

Traceback (most recent call last):
File "C:\odoo\Odoo 13.0\server\odoo\http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\odoo\Odoo 13.0\server\odoo\http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\odoo\Odoo 13.0\server\odoo\tools\pycompat.py", line 14, in reraise
raise value
File "C:\odoo\Odoo 13.0\server\odoo\http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "C:\odoo\Odoo 13.0\server\odoo\http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\odoo\Odoo 13.0\server\odoo\service\model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "C:\odoo\Odoo 13.0\server\odoo\http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "C:\odoo\Odoo 13.0\server\odoo\http.py", line 915, in call
return self.method(*args, **kw)
File "C:\odoo\Odoo 13.0\server\odoo\http.py", line 515, in response_wrap
response = f(*args, **kw)
File "C:\odoo\Odoo 13.0\server\odoo\addons\web\controllers\main.py", line 1320, in call_kw
return self._call_kw(model, method, args, kwargs)
File "C:\odoo\Odoo 13.0\server\odoo\addons\web\controllers\main.py", line 1312, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\odoo\Odoo 13.0\server\odoo\api.py", line 383, in call_kw
result = _call_kw_model(method, model, args, kwargs)
File "C:\odoo\Odoo 13.0\server\odoo\api.py", line 356, in _call_kw_model
result = method(recs, *args, **kwargs)
File "C:\odoo\Odoo 13.0\server\odoo\addons\web\models\models.py", line 75, in web_read_group
expand_limit, expand_orderby)
File "C:\odoo\Odoo 13.0\server\odoo\addons\web\models\models.py", line 99, in _web_read_group
orderby=orderby, lazy=lazy)
File "C:\odoo\Odoo 13.0\server\odoo\models.py", line 2140, in read_group
result = self._read_group_raw(domain, fields, groupby, offset=offset, limit=limit, orderby=orderby, lazy=lazy)
File "C:\odoo\Odoo 13.0\server\odoo\models.py", line 2177, 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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported Odoo 13 Partner Ledger failure and trace the call through addons/web/models/models.py, odoo/models.py, and the read_group path shown in the traceback. Reproduce the ledger error in a comparable database and identify why its groupby field is not database-persisted. Done means the default ledger opens and debit, credit, paid, and unpaid entries report correctly without third-party modules.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.