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

[16.0] Odoo Error While using Account Chart update - Expected singleton #1814

Open
SIC-brunorocha opened this issue Feb 3, 2024 · 2 comments
Labels

Comments

@SIC-brunorocha
Copy link

Hello, I´m new to using the module, but I get a Odoo Error when using it.

Module
account_chart_update

Describe the bug
File "/home/odoo/src/user/account_chart_update/wizard/wizard_chart_update.py", line 621, in find_account_by_templates
return result.id
File "/home/odoo/src/odoo/odoo/fields.py", line 5090, in get
raise ValueError("Expected singleton: %s" % record)
ValueError: Expected singleton: account.account(18, 20, 220, 222, 36, 38, 40, 236, 242, 42, 44, 46, 244)

To Reproduce
Open Update chart of account, select a chart template, press next.

Expected behavior
I believed is expected to move from Configuratioon, to Select Records To Update State.

@giarve
Copy link

giarve commented Oct 14, 2024

This happens when there are duplicate accounts found for the same template (matching code or name) IIRC.

You have to deduplicate them in the chart of accounts. Look them up by id i.e. "18" and "20" probably have something in common.

@SIC-brunorocha
Copy link
Author

Hum....Tanks I will check.
It should have a manual this OCA module

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

No branches or pull requests

2 participants