[6.0]Impossible to delete account even if it's not linked to any partner
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP Publisher's Warranty Team |
Bug Description
Hi all,
Deleting an account which has already set to partner is impossible without doing sql queries.
Create a new account for a partner (go to Accounting > Configuration > Financial Accounting > Accounts > Accounts)
Create a new partner and set this account in the field account receivable
now:
Go to Accounting > Configuration > Financial Accounting > Accounts > Accounts
Select the account you've created
Click on delete
You have the error message: You cannot remove/deactivate an account which is set as a property to any Partner.
Delete the partner you've created an retry to delete the account.
You still have the same error message: You cannot remove/deactivate an account which is set as a property to any Partner.
It seems that the object is still referenced in an ir.property table and the only way is to manualy go into the sql database to delete this reference and then delete the account.
you can try this here:
http://
db: Test_Compta
login: admin
pwd: kazacube
I saw a post for the same problem on V7 where the proposed solution is just to change the error message. For me this is not a correct solution. Correct solution should be to:
1- continue to check if the account is used by a partner
2- if the account is not used by a partner then delete it
Many thanks for your help.
Damien D.
Related branches
- Naresh(OpenERP): Pending requested
-
Diff: 25 lines (+8/-2)1 file modifiedbin/osv/orm.py (+8/-2)
Changed in openobject-addons: | |
status: | Invalid → New |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
affects: | openobject-addons → openobject-server |
Hello Damien,
Faced the problem on only version 6.
On latest version7 as well as trunk this issue is working fine.
For this type of issue for stable version, If you have a support and maintenance contract with us then you can contact our OPW team at <email address hidden>. They will definitely helps you.
Thank you!