[FIX] account_asset: Small change.
bzr revid: uco@tinyerp.com-20110613070852-1pnhhwsxhs0acg9o
This commit is contained in:
parent
fff4963e2f
commit
f644d26439
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue