Merge lp:~openerp-dev/openobject-server/6.0-opw-586600-rgo into lp:openobject-server/6.0
Status: | Merged |
---|---|
Approved by: | Xavier ALT |
Approved revision: | 3657 |
Merged at revision: | 3659 |
Proposed branch: | lp:~openerp-dev/openobject-server/6.0-opw-586600-rgo |
Merge into: | lp:openobject-server/6.0 |
Diff against target: |
25 lines (+8/-2) 1 file modified
bin/osv/orm.py (+8/-2) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-server/6.0-opw-586600-rgo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Naresh(OpenERP) | Pending | ||
Review via email: mp+149753@code.launchpad.net |
Description of the change
Steps to reproduce issue:
1) Create 2 new accounts, one of type=receivable and one of type=payable,
2) Create a new partner and set these accounts in the field account receivable, account payable,
3) Select the one of the account you've created and click on delete,
You will have the warning message: You cannot remove/deactivate an account which is set as a property to any Partner.
4) Delete the partner you've created an retry to delete the account.
You will still have the same error message.
The reason for this is that the constraint wont allow to delete the account if it is referring to properties, but the properties are no longer needed as the resource itself was deleted.
This fix will remove the properties at the time of deletion of resource record.
Kindly review the fix.
Thanks.