[FIX]account_asset:Fixes the expresion problem in asset

bzr revid: kbh@tinyerp.com-20121102091445-xgsn8kvsu3glom1d
This commit is contained in:
Khushboo Bhatt (Open ERP) 2012-11-02 14:44:45 +05:30
parent 459270ebff
commit e9942561c0
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ class account_asset_depreciation_line(osv.osv):
current_currency = line.asset_id.currency_id.id
context.update({'date': depreciation_date})
amount = currency_obj.compute(cr, uid, current_currency, company_currency, line.amount, context=context)
sign == (line.asset_id.category_id.journal_id.type == 'purchase' and 1) or -1
sign = (line.asset_id.category_id.journal_id.type == 'purchase' and 1) or -1
asset_name = line.asset_id.name
reference = line.name
move_vals = {