[FIX] account_asset: Small change.

bzr revid: uco@tinyerp.com-20110613070852-1pnhhwsxhs0acg9o
This commit is contained in:
Ujjvala Collins (OpenERP) 2011-06-13 12:38:52 +05:30
parent fff4963e2f
commit f644d26439
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class account_asset_asset(osv.osv):
def compute_depreciation_board(self, cr, uid,ids, context=None):
depreciation_lin_obj = self.pool.get('account.asset.depreciation.line')
for asset in self.browse(cr, uid, ids, context=context):
if asset.value_residual == 0:
if asset.value_residual == 0.0:
continue
old_depreciation_line_ids = depreciation_lin_obj.search(cr, uid, [('asset_id', '=', asset.id), ('move_id', '=', False)])
if old_depreciation_line_ids: