Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][FIX] account_reconciliation_widget: Error when click reconcile button #657

Merged

Conversation

newtratip
Copy link
Member

When click reconcile button on bank statement, I found error as below text. This PR is fixed for this issue

Traceback (most recent call last):
File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 368, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/custom/src/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 357, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 921, in call
return self.method(*args, **kw)
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 546, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/auto/addons/web/controllers/main.py", line 1324, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/auto/addons/web/controllers/main.py", line 1316, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/custom/src/odoo/odoo/api.py", line 465, in call_kw
result = _call_kw_model(method, model, args, kwargs)
File "/opt/odoo/custom/src/odoo/odoo/api.py", line 438, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/opt/odoo/auto/addons/account_reconciliation_widget/models/reconciliation_widget.py", line 333, in get_bank_statement_data
results = self.get_bank_statement_line_data(
File "/opt/odoo/auto/addons/account_reconciliation_widget/models/reconciliation_widget.py", line 245, in get_bank_statement_line_data
partner_map = self._get_bank_statement_line_partners(bank_statement_lines)
File "/opt/odoo/auto/addons/account_reconciliation_widget/models/reconciliation_widget.py", line 206, in _get_bank_statement_line_partners
self._cr.execute(query, params)
File "", line 2, in execute
File "/opt/odoo/custom/src/odoo/odoo/sql_db.py", line 90, in check
return f(self, *args, **kwargs)
File "/opt/odoo/custom/src/odoo/odoo/sql_db.py", line 311, in execute
res = self._obj.execute(query, params)
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 654, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
psycopg2.errors.UndefinedTable: relation "res_company_p3_rel" does not exist
LINE 12: SELECT 1 FROM "res_company_p3_re...

@newtratip newtratip changed the title [FIX] account_reconciliation_widget: Error when click reconcile button [15.0][FIX] account_reconciliation_widget: Error when click reconcile button May 7, 2024
@newtratip newtratip force-pushed the 15.0-fix-account_reconciliation_widget branch from 1086b02 to 305ec68 Compare May 7, 2024 03:42
@pedrobaeza pedrobaeza added this to the 15.0 milestone May 17, 2024
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clear enough:

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 15.0-ocabot-merge-pr-657-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f9f0b75 into OCA:15.0 May 17, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at b068e7a. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants