[MERGE] merged bde branch with fix of residual amount

bzr revid: qdp-launchpad@openerp.com-20110527133523-wdt7rln2n7m5cy4y
This commit is contained in:
Quentin (OpenERP) 2011-05-27 15:35:23 +02:00
commit cd3ab569ee
1 changed files with 1 additions and 0 deletions

View File

@ -383,6 +383,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