← Back to team overview

openerp-india team mailing list archive

[Bug 690753] Re: [6.0] and [5.x] account_analytic_line must not be deleted if the journal etc is deleted

 

Hello Cristian,

Your issue is totally different then the reported bug, the main but is
reported for "If journal is deleted then it's analytic line must not be
deleted". That's why we have put a ondelete='restrict on move line.

As per your last comment you describe that "If accountant is cancel the
analytic journal entry then It's related move line must be deleted".

But I am not agree with you as well as It's not a bug rather then It's
your suggestion. If you want to get a "Opinion" on this then you can
post a new bug report foe this.

Thanks for understanding!

-- 
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/690753

Title:
  [6.0] and [5.x] account_analytic_line must not be deleted if the
  journal etc is deleted

Status in OpenERP Addons (modules):
  Fix Released
Status in OpenERP Addons 5.0 series:
  Won't Fix
Status in OpenERP Addons trunk series:
  Fix Released

Bug description:
  account_analytic_line.py
          'product_uom_id': fields.many2one('product.uom', 'UoM'),
          'product_id': fields.many2one('product.product', 'Product'),
          'general_account_id': fields.many2one('account.account', 'General Account', required=True, ondelete='cascade'),
          'move_id': fields.many2one('account.move.line', 'Move Line', ondelete='cascade', select=True),
          'journal_id': fields.many2one('account.analytic.journal', 'Analytic Journal', required=True, ondelete='cascade', select=True),

  We just lost (and recoverd) 2 years of timesheet data because someone
  accidently deleted a record in account.analytic.journal.

  IMHO the "ondelete" must be removed to conform to good accounting practice. 
  at  best the resources can be set to inactive, but tehy should never be deleted.

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