Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
9810 Vistas

Hello, I'm trying to start a new fresh chart of accounts

when I try to delete the following accounts I get this error

 You cannot remove/deactivate an account which is set on a customer or vendor.


Here's the list of accounts:

  • 101200 Account Receivable

  • 101300 Tax Paid 

  • 111100 Account Payable

  • 111200 Tax Received

  • 200000 Product Sales

  • 220000 Expenses


when I checked the log file I got this 

odoo.sql_db: bad query: UPDATE "account_account" SET "code"='220000',"write_uid"=1,"write_date"=(now() at time zone 'UTC') WHERE id IN (68)


any help will be appreciated. Thanks


Avatar
Descartar

Deprecate vs Delete Chart of Accounts in Odoo | Key Differences & Best Practices | Odoo Accounting
Confused about whether to deprecate or delete an account in Odoo? In this video, we explain the key differences between deprecating and deleting a Chart of Accounts in Odoo with real-world examples to help you make the right choice.

https://youtu.be/fRSmzNxo2dw

Mejor respuesta

You have to delete/change the related objects (customers, products etc.) first.

Avatar
Descartar
Autor

I installed only accounting module.. however when I checked the customers which are listed under Accounting module, it didn't allow me to delete the accounts parameters listed under my company. Anyways I had to erase these data from postgresql manually.

It is not recommended to do that in the database directly. Even if you only install the accounting module, you should check the usual suspects for relationships and apply appropriate filters in order to find and change/delete corresponding entries.

"Usual suspects" are for example:

- partner, contacts, employees, users, products, fiscal positions, taxes etc.

Publicaciones relacionadas Respuestas Vistas Actividad
0
sept 22
2019
3
oct 21
12154
1
jun 18
4060
1
ago 24
1655
1
ene 20
5149