From 443605ce565b6c89a686adcf85bcb86aac836afc Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Mon, 25 May 2015 18:35:10 +0200 Subject: [PATCH] [FIX] account_asset: entries from assets When an entry is generated from an asset, the number of this entry must be the sequence number linked to the journal of the asset and the reference of this entry is the name of the asset. opw:639760 --- addons/account_asset/account_asset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account_asset/account_asset.py b/addons/account_asset/account_asset.py index ffa0b75dc8c..8942baabfd0 100644 --- a/addons/account_asset/account_asset.py +++ b/addons/account_asset/account_asset.py @@ -406,8 +406,8 @@ class account_asset_depreciation_line(osv.osv): 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 - asset_name = line.asset_id.name - reference = line.name + asset_name = "/" + reference = line.asset_id.name move_vals = { 'name': asset_name, 'date': depreciation_date,