[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:
parent
b00a7562f9
commit
71c61ce1df
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue