Tuesday, February 4, 2025
1 change · saas-18.1
Resolved issues and error corrections
Fixes an error that prevented users from importing a Chart of Accounts through WinBooks. The import now uses the correct account reference format, allowing the process to complete instead of showing a technical traceback.
Original PR description
Currently, a traceback is occurring when the user tries to import a Chart of Account through Winbook. Error:- ``` ProgrammingError: can't adapt type 'account.account' ``` This error occurs because of the changes from the below commit. https://github.com/odoo/enterprise/commit/a067f8421e3058507f3e25088d94e33122ecdd1e#diff-0e37484af3f832073947594d460e7a6039698cbee82232e2c9b35c0aff3a59b3L331-R333 Initially an `ID` was assigned as a value for `default_account_id`. But after the above commit was merged, an abject `account.account(320,)` was assigned, which leads to the above traceback. We can resolve this issue by assigning an ID instead of an object. sentry-6260765287