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