can't delete payment term

Bug #1000776 reported by Renato Lima - http://www.akretion.com
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3
OpenERP Community Backports (Addons)
Fix Released
Undecided
Pedro Manuel Baeza
6.1
Fix Released
Undecided
Pedro Manuel Baeza

Bug Description

When I try delete one payment term this error happend:

Integrity Error

The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set

[object with reference: Payment Term Line - account.payment.term.line]

In account.payment.term.line object the field payment_id must has de argument ondelete='cascade' to permit delete the account.payment.term to allow delete without need delete account.payment.term.line first.

Best regards,

Renato Lima - http://www.akretion.com

Related branches

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Turkesh Patel (openERP) (turkesh-tinyerp) wrote :

Hello,

Thanks For Reporting.

It has been Fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1000776-tpa

revno: 6802

It will be available in trunk soon.

Thanks,
Turkesh Patel.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Amit Parik (amit-parik) wrote :

Fixed on 7364.

Thanks for the fix Turkesh.

Changed in openobject-addons:
status: Fix Committed → Fix Released
Changed in ocb-addons:
assignee: nobody → Pedro Manuel Baeza (pedro.baeza)
status: New → Fix Released
Changed in ocb-addons:
status: Fix Released → Fix Committed
Changed in ocb-addons:
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.