[5.0- account] Desactivating account does not check if it is linked to a partner

Bug #548494 reported by invitu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
Unassigned

Bug Description

When we desactivate an account.account, it does not check if the account is linked to a partner.
The result is that the field corresponding to this account gets empty for all the partners who had this account set up.

For example, we have customers who have a given supplier account by default (ie. 401100 for french account chart) and that supplier account does not have any account move. If we desactivated the 401100 account, the supplier account field gets empty.
There should be a new check that should verify is the account we want to desactivate is not linked to a partner.

Regards

Related branches

invitu (invitu)
summary: - Desactivating account does not check if it is linked to a partner
+ [5.0- account] Desactivating account does not check if it is linked to a
+ partner
Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Guys,

Would you please apply this patch and tell us whether this is a needed change or not?

Thanks.

Changed in openobject-addons:
importance: Undecided → Medium
milestone: none → 5.0.9
status: Confirmed → In Progress
Revision history for this message
invitu (invitu) wrote :

Hello

Thank you, the patch does the job. We are gonna apply it to all our customers.

I confirm it is a needed change because we had the problem with one of our customer.
The accountant desactivated the accounts without moves in order to have a better view for the general ledger and other prints.
As the account 401100 was set by default to all the customers partners but has no moves --> the accountant desactivated it and all the customers lost their supplier account field which was a problem (the supplier account field is needed when editing a partner)

Regards

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thank you for the feedback.
It has been fixed by revision 2683 <email address hidden>.

Changed in openobject-addons:
milestone: 5.0.9 → 5.0.8
status: In Progress → 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.