[6.0]Impossible to delete account even if it's not linked to any partner

Bug #1129022 reported by Damien D.
6
This bug affects 1 person
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://54.228.22.65:48080/
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.

Tags: maintenance

Related branches

Revision history for this message
Amit Parik (amit-parik) wrote :

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!

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Damien D. (ddelangle) wrote :

Hello Amit,

Ok then I will check with our support & maintenance contract in order to have the patch for 6.0.4.

Thanks,

Damien D.

Changed in openobject-addons:
status: Invalid → New
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Revision history for this message
Ravi Gohil (OpenERP) (rgo-openerp) wrote :

This issue has been fixed in,
Branch: lp:~openerp-dev/openobject-server/6.0-opw-586600-rgo
Rev Id: <email address hidden>
Rev #: 3657

The branch is under review of the experts, it will soon be reviewed and merged with main stable branch.

Thanks.

Changed in openobject-addons:
status: New → Fix Committed
importance: Undecided → Low
affects: openobject-addons → openobject-server
Revision history for this message
Ravi Gohil (OpenERP) (rgo-openerp) wrote :

Fix landed in main stable V6 branch by rev-no: 3659, revision-id: <email address hidden>

Changed in openobject-server:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.