OCA / account-closing

Odoo Accountant closing tools
GNU Affero General Public License v3.0
65 stars 245 forks source link

[16.0][FIX] account_multicurrency_revaluation: avoid error in query #282

Closed MiquelRForgeFlow closed 11 months ago

MiquelRForgeFlow commented 11 months ago
File "/opt/odoo/addons/web/controllers/dataset.py", line 46, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/opt/odoo/addons/web/controllers/dataset.py", line 33, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/api.py", line 466, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo/api.py", line 453, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/mnt/data/odoo-addons-dir/account_multicurrency_revaluation/wizard/wizard_currency_revaluation.py", line 330, in revaluate_currency
revaluations = account_ids.compute_revaluations(
File "/mnt/data/odoo-addons-dir/account_multicurrency_revaluation/model/account.py", line 251, in compute_revaluations
self.env.cr.execute(query, params)
File "/opt/odoo/odoo/sql_db.py", line 321, in execute
res = self._obj.execute(query, params)
psycopg2.errors.UndefinedTable: invalid reference to FROM-clause entry for table "account_account"
LINE 43: AND ("account_account"."company_id" IS NULL OR ...
^
HINT: Perhaps you meant to reference the table alias "acc".
AaronHForgeFlow commented 11 months ago

/ocabot merge patch

OCA-git-bot commented 11 months ago

What a great day to merge this nice PR. Let's do it! Prepared branch 16.0-ocabot-merge-pr-282-by-AaronHForgeFlow-bump-patch, awaiting test results.

OCA-git-bot commented 11 months ago

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