Unable to delete "open" invoice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
Version : OpenERP 6.0 RC2
I'm unable to delete an opened (not paid) invoice.
- I installed the module "account_cancel".
- I set the option "Allow Cancelling Entries" to true on the journal used by the invoice.
But I get the following SQL error
Error message (server side) :
[2011-01-05 16:02:29,
Traceback (most recent call last):
File "/usr/local/
res = self._obj.
IntegrityError: update or delete on table "account_move" violates foreign key constraint "account_
DETAIL: Key (id)=(2) is still referenced from table "account_invoice".
Error message (client side) :
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: Invoice - account.invoice]
Could you reproduce it ?
Changed in openobject-addons: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
milestone: | none → 6.0 |
Changed in openobject-addons: | |
status: | In Progress → Fix Released |
On Wednesday 05 January 2011, you wrote: dev-addons3)
> ** Changed in: openobject-addons
> Status: New => Confirmed
>
> ** Changed in: openobject-addons
> Importance: Undecided => Medium
>
> ** Changed in: openobject-addons
> Assignee: (unassigned) => OpenERP R&D Addons Team 3
> (openerp-
A patch is already provided at my "patch24" branch, pending a merge.