Correct Residual Value Field

bzr revid: bde@tiny2-desktop-20110524062530-nlf687clyazmyowj
This commit is contained in:
bde 2011-05-24 11:55:30 +05:30
parent a2ffcb5888
commit 84846c953b
1 changed files with 1 additions and 0 deletions

View File

@ -357,6 +357,7 @@ class account_asset_depreciation_line(osv.osv):
'amount_currency': company_currency <> current_currency and sign * line.amount or 0.0,
'analytic_account_id': line.asset_id.category_id.account_analytic_id.id,
'date': depreciation_date,
'asset_id': line.asset_id.id
})
self.write(cr, uid, line.id, {'move_id': move_id}, context=context)
return True