← Back to team overview

c2c-oerpscenario 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

 

** Changed in: openobject-addons/trunk
       Status: Fix Committed => Fix Released

-- 
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:
  Fix Released
Status in OpenObject Addons 5.0 series:
  Won't Fix
Status in OpenObject 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.





References