← Back to team overview

openerp-india team mailing list archive

[Bug 1102612] Re: [Trunk/7.0]Journals can not be deleted, even when they have no entries

 

Hello Tejas,

You might be getting wrong this issue.In this bug when we delete journal
it shows integrity error which is not good.So we don't say that the
journal can not be delete but it throws the integrity error  instead of
warning  message.

We are not says that the journal not allow to delete but we wants a
precious warning message inplace of integrity error. We have considered
the integrity error as a bug in point of usability that's we was set
this as a "Low" importance.

And yes, you are absolutely right the following step can delete the journal but it will shows on warning message.
 1.In journal Cash Registers tab >> checked cash control > you able to see related records.
 2.Remove all those records.
 3.Try to delete journal.

See I am giving a same example for you, please try to delete a account
which is already reference with the invoice line then you will see
warning message not the integrity error. So I am taking about this same
way works for the journal.

I have attached the image which will clearly show this.

I think this reasons/description is quite enough for reopen this bug
report, So I am going to reopen this again.

Thanks for the understanding!

Note: Please make sure before setting a bug as a invalid, If you are not
damn sure then  please put the comment and ask for the reply. Don't
directly invalidate it.

** Changed in: openobject-addons
       Status: Invalid => Confirmed

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1102612

Title:
  [Trunk/7.0]Journals can not be deleted, even when they have no entries

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  7.0 creates, as part of the default accounting setup, a "Bank" and a
  "Cash" journal. Attempting to delete either of these journals presents
  the cryptic error:

  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: account.journal.cashbox.line -
  account.journal.cashbox.line]

  This is also just as relevant to any journal created by the user.

  There is indeed a table account.journal.cashbox.line that references
  the journal, but it's extra confusing to a user since no action was
  ever taken to associate this journal with a cashbox, and there does
  not appear to be any way to delete the offending
  account.journal.cashbox.line records through the UI that I have found.
  Deleting them directly from the database is of course possible, but
  probably not an acceptable workaround for typical users.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1102612/+subscriptions


References