Properties should be deleted when the related record is deleted

Bug #891580 reported by Damien Raemy
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP's Framework R&D

Bug Description

Hello,

I constated the following bug:
- Create a new partner
- Create two financial accounts
- Set this accounts as account receivable and account payable
- Delete the partner
- Try to delete an account

An error appear: we cannot delete account that is linked to a partner. But the partner has been deleted.

This bug come because the accounts payable and receivable in the object partner is not a fields.many2one, bug a fields.property (I don't understant why), and the property in the table ir_property stay when we delete a partner.

The best solution to correct this bug would be to set the fields accounts in partner as one2many type instead of property.

I use OpenERP 6.0.3 on a Ubuntu 10.04LTS server.

Thanks

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
DJ Patel (OpenERP) (mdi-openerp) wrote :

Hello Damien,

Thanks for reporting. The solution for this bug is proposed in the branch : https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-891580-mdi/

with following Revision ID and Number.

Revision ID : <email address hidden>
Revision Number : 5744

Thanks and Regards,

Divyesh Makwana(MDI)

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Purnendu Singh (OpenERP) (purnendu-singh) wrote :

hello,

with respect to fabien comment on https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-891580-mdi/+merge/82639.

This bug should assign to Framwork team.

Thanks,
Purnendu singh

Changed in openobject-addons:
status: Fix Committed → Confirmed
Amit Parik (amit-parik)
affects: openobject-addons → openobject-server
Amit Parik (amit-parik)
Changed in openobject-server:
assignee: OpenERP R&D Addons Team 3 (openerp-dev-addons3) → OpenERP's Framework R&D (openerp-dev-framework)
summary: - Cannot remove account linked to a deleted partner
+ Properties should be deleted when the related record is deleted
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

Thanks for reporting !

It has been fixed at lp:~openerp-dev/openobject-server/trunk-bug-891580-nch with revision-info: 3847 <email address hidden> and will be merged soon to the trunk server

Regards,

Changed in openobject-server:
status: Confirmed → In Progress
status: In Progress → Fix Committed
Revision history for this message
Nhomar - Vauxoo (nhomar) wrote : Re: [Bug 891580] Re: Properties should be deleted when the related record is deleted

IMHO.

This kind of bugs should be improved on stable too!....
Regards.

2011/12/2 Naresh(OpenERP) <email address hidden>

> Hello,
>
> Thanks for reporting !
>
> It has been fixed at lp:~openerp-dev/openobject-server/trunk-
> bug-891580-nch with revision-info: 3847
> <email address hidden> and will be merged soon
> to the trunk server
>
> Regards,
>
> ** Changed in: openobject-server
> Status: Confirmed => In Progress
>
> ** Changed in: openobject-server
> Status: In Progress => Fix Committed
>
> --
> You received this bug notification because you are subscribed to OpenERP
> Project Group.
> https://bugs.launchpad.net/bugs/891580
>
> Title:
> Properties should be deleted when the related record is deleted
>
> Status in OpenERP Server:
> Fix Committed
>
> Bug description:
> Hello,
>
> I constated the following bug:
> - Create a new partner
> - Create two financial accounts
> - Set this accounts as account receivable and account payable
> - Delete the partner
> - Try to delete an account
>
> An error appear: we cannot delete account that is linked to a partner.
> But the partner has been deleted.
>
> This bug come because the accounts payable and receivable in the
> object partner is not a fields.many2one, bug a fields.property (I
> don't understant why), and the property in the table ir_property stay
> when we delete a partner.
>
> The best solution to correct this bug would be to set the fields
> accounts in partner as one2many type instead of property.
>
> I use OpenERP 6.0.3 on a Ubuntu 10.04LTS server.
>
> Thanks
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openobject-server/+bug/891580/+subscriptions
>

--
--------------------
Saludos Cordiales

Nhomar G. Hernandez M.
+58-414-4110269
Skype: nhomar00
Web-Blog: http://geronimo.com.ve
Servicios IT: http://openerp.com.ve
Linux-Counter: 467724
Correos:
<email address hidden>
<email address hidden>
twitter @nhomar

Revision history for this message
Vo Minh Thu (thu) wrote :

Thanks for the bug report, the proposed fixed is available in trunk:
revno: 3953
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.