Merge lp:~pedro.baeza/openobject-addons/trunk-fix-1258237 into lp:openobject-addons

Proposed by Pedro Manuel Baeza
Status: Needs review
Proposed branch: lp:~pedro.baeza/openobject-addons/trunk-fix-1258237
Merge into: lp:openobject-addons
Diff against target: 23 lines (+2/-3)
1 file modified
account_asset/account_asset.py (+2/-3)
To merge this branch: bzr merge lp:~pedro.baeza/openobject-addons/trunk-fix-1258237
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+208044@code.launchpad.net

Description of the change

Fix for lp:1258237. More info on the bug.

To post a comment you must log in.
9087. By Niko (OpenERP)

[IMP] Add some video to manisfest ( website, website_blog, website_event, website_ecommerce)

Unmerged revisions

9181. By Pedro Manuel Baeza

[FIX] account_asset: Incorrect names of generated account move and move lines.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_asset/account_asset.py'
2--- account_asset/account_asset.py 2014-02-10 06:46:42 +0000
3+++ account_asset/account_asset.py 2014-02-24 23:38:04 +0000
4@@ -179,7 +179,7 @@
5 'amount': amount,
6 'asset_id': asset.id,
7 'sequence': i,
8- 'name': str(asset.id) +'/' + str(i),
9+ 'name': "%s/%s" %(i, undone_dotation_number),
10 'remaining_value': residual_amount,
11 'depreciated_value': (asset.purchase_value - asset.salvage_value) - (residual_amount + amount),
12 'depreciation_date': depreciation_date.strftime('%Y-%m-%d'),
13@@ -407,9 +407,8 @@
14 asset_name = line.asset_id.name
15 reference = line.name
16 move_vals = {
17- 'name': asset_name,
18 'date': depreciation_date,
19- 'ref': reference,
20+ 'ref': "%s %s" %(line.asset_id.code or line.asset_id.name, line.name),
21 'period_id': period_ids and period_ids[0] or False,
22 'journal_id': line.asset_id.category_id.journal_id.id,
23 }

Subscribers

People subscribed via source and target branches

to all changes: