← 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
   Importance: Undecided => Medium

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

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)

** Also affects: openobject-addons/5.0
   Importance: Undecided
       Status: New

** Also affects: openobject-addons/trunk
   Importance: Medium
     Assignee: OpenERP R&D Addons Team 3 (openerp-dev-addons3)
       Status: Confirmed

** Changed in: openobject-addons/5.0
       Status: New => Incomplete

** Changed in: openobject-addons/5.0
       Status: Incomplete => Won't Fix

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

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