[FIX] account_asset: copy should not keep history and move lines of previous asset

bzr revid: mat@openerp.com-20140409100658-1oj741aw5sne8dtr
This commit is contained in:
Martin Trigaux 2014-04-09 12:06:58 +02:00
parent b00a7562f9
commit 71c61ce1df
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ class account_asset_asset(osv.osv):
default = {}
if context is None:
context = {}
default.update({'depreciation_line_ids': [], 'state': 'draft'})
default.update({'depreciation_line_ids': [], 'account_move_line_ids': [], 'history_ids': [], 'state': 'draft'})
return super(account_asset_asset, self).copy(cr, uid, id, default, context=context)
def _compute_entries(self, cr, uid, ids, period_id, context=None):