We are getting a validation error when trying to open or modify the Chart of Accounts.
Error message:
“You cannot have more than one account with 'Current Year Earnings' as type. (accounts: False, False, False, False, and False)”
Each company in our database has only one account of type equity_unaffected (“Undistributed Profits/Losses”).
We manually reviewed all companies and their Chart of Accounts, and there are no duplicate accounts of this type.
It seems that some internal properties (property_account_current_year_earnings_id) might still be referencing deleted or shared accounts, even though all accounts are now correctly separated by company.
We are using Odoo Online (SaaS 18), so we cannot access or edit ir.property through XML-RPC or Studio.
We already tried:
- Changing and saving the “Current Year Earnings” account in each company’s accounting settings.
- Deactivating and reactivating the accounts.
- Verifying that all companies have their own equity_unaffected account.
The error still appears every time we try to open or edit any account, and it also prevents us from creating a new company (because Odoo tries to validate the “Current Year Earnings” property).
Could this be caused by an internal reference that still points to a deleted or shared account ID (like account.account,6909)?
If so, is there any way to reset or reassign those internal property_account_current_year_earnings_id entries without technical intervention on SaaS?