openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #26398
[Bug 1241968] Re: asset duplication must not copy move_lines
Hello,
It has been Fixed in https://code.launchpad.net/~openerp-dev/openobject-
addons/trunk-bug-1241968-cod
revision-id: cod@xxxxxxxxxxx-20131022125919-bag1akehk3lbik7x
revno: 8954.
It will be available in trunk soon.
** Changed in: openobject-addons
Status: In Progress => Fix Committed
--
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):
Fix Committed
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