← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Public bug reported:

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.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
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 OpenObject Addons Modules:
  New

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.





Follow ups

References