From 2606e37b18c92f02331c05620f5c0edc7b9f14ad Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Mon, 16 Mar 2015 08:55:04 +0100 Subject: [PATCH] [FIX] account_asset: currency problem with depreciation in asset management The amount used to create an account asset depreciation line must be in the currency of the asset. opw: 628663 --- addons/account_asset/account_asset.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/account_asset/account_asset.py b/addons/account_asset/account_asset.py index 9cf4c14fff2..59a3bdc825b 100644 --- a/addons/account_asset/account_asset.py +++ b/addons/account_asset/account_asset.py @@ -172,10 +172,6 @@ class account_asset_asset(osv.osv): for x in range(len(posted_depreciation_line_ids), undone_dotation_number): i = x + 1 amount = self._compute_board_amount(cr, uid, asset, i, residual_amount, amount_to_depr, undone_dotation_number, posted_depreciation_line_ids, total_days, depreciation_date, context=context) - company_currency = asset.company_id.currency_id.id - current_currency = asset.currency_id.id - # compute amount into company currency - amount = currency_obj.compute(cr, uid, current_currency, company_currency, amount, context=context) residual_amount -= amount vals = { 'amount': amount,