[FIX] account_asset: Analytic entries should be created only for depreciation expense account.

bzr revid: uco@tinyerp.com-20110601060502-0g3btl51eess5atn
This commit is contained in:
Ujjvala Collins (OpenERP) 2011-06-01 11:35:02 +05:30
parent 65d41c8c0a
commit fea7004367
1 changed files with 0 additions and 1 deletions

View File

@ -365,7 +365,6 @@ class account_asset_depreciation_line(osv.osv):
'partner_id': line.asset_id.partner_id.id,
'currency_id': company_currency <> current_currency and current_currency or False,
'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,
})
move_line_obj.create(cr, uid, {