Hello i found this bug affects me but in other side, i am agree with
remove in journal_id fields, but ondelete for account.move.line was
changed for 'restrict', i am consider this a bug so if accountant cancel
a move analytic must be removed too.

So i propose for move_id fields change ondelete='cascade'.

Regards,

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

_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help   : https://help.launchpad.net/ListHelp

Reply via email to