[FIX] account_asset: create_move function

bzr revid: qdp-launchpad@openerp.com-20110512170529-e32zm40dspbie2em
This commit is contained in:
Quentin (OpenERP) 2011-05-12 19:05:29 +02:00
parent 48fc094fce
commit 158936f7aa
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ class account_asset_depreciation_line(osv.osv):
move_line_obj = self.pool.get('account.move.line')
currency_obj = self.pool.get('res.currency')
for line in self.browse(cr, uid, ids, context=context):
depreciation_date = asset_obj._get_last_depreciation_date(cr, uid, [line.asset_id.id], context=context)[line.asset_id.id]
depreciation_date = time.strftime('%Y-%m-%d')
period_ids = period_obj.find(cr, uid, depreciation_date, context=context)
company_currency = line.asset_id.company_id.currency_id.id
current_currency = line.asset_id.currency_id.id