[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
This commit is contained in:
parent
5c690d3700
commit
443605ce56
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue