← Back to team overview

openerp-india team mailing list archive

[Bug 1241968] [NEW] asset duplication must not copy move_lines

 

Public bug reported:

to reproduce
confirm one depreciation line and copy the asset

fixed by adding 'account_move_line_ids':[],
def copy(
....
        asset = self.browse(cr, uid, id, context=context)
        default.update({'depreciation_line_ids': [],'history_ids': [], 'account_move_line_ids':[], 'name': asset.name+ " (copy)", 'code': asset.code+ " (copy)", 'state': 'draft'})

the "copy" text is necessary to be able to distinguish the new from old
asset

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

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

** Also affects: ocb-addons
   Importance: Undecided
       Status: New

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

Title:
  asset duplication  must not copy move_lines

Status in OpenERP Community Backports (Addons):
  New
Status in OpenERP Addons (modules):
  New

Bug description:
  to reproduce
  confirm one depreciation line and copy the asset

  fixed by adding 'account_move_line_ids':[],
  def copy(
  ....
          asset = self.browse(cr, uid, id, context=context)
          default.update({'depreciation_line_ids': [],'history_ids': [], 'account_move_line_ids':[], 'name': asset.name+ " (copy)", 'code': asset.code+ " (copy)", 'state': 'draft'})

  the "copy" text is necessary to be able to distinguish the new from
  old asset

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


Follow ups

References