openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #26300
[Bug 1241968] Re: asset duplication must not copy move_lines
** Tags added: asset
--
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):
Confirmed
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
References