Merge lp:~pedro.baeza/ocb-addons/6.1-fix-935564 into lp:ocb-addons/6.1

Proposed by Pedro Manuel Baeza
Status: Merged
Merged at revision: 6829
Proposed branch: lp:~pedro.baeza/ocb-addons/6.1-fix-935564
Merge into: lp:ocb-addons/6.1
Diff against target: 11 lines (+1/-0)
1 file modified
account_asset/account_asset_invoice.py (+1/-0)
To merge this branch: bzr merge lp:~pedro.baeza/ocb-addons/6.1-fix-935564
Reviewer Review Type Date Requested Status
Holger Brunn (Therp) code review Approve
Omar (Pexego) code review Approve
Review via email: mp+197737@code.launchpad.net

Commit message

[FIX] account_asset: correct date when making an asset from an invoice

Description of the change

Corrects the bug #935564, as made on 7.0 on revision 7613.

To post a comment you must log in.
Revision history for this message
Omar (Pexego) (omar7r) wrote :

LGTM

review: Approve (code review)
Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

please also link this branch to the bug report

review: Approve (code review)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_asset/account_asset_invoice.py'
2--- account_asset/account_asset_invoice.py 2011-11-11 19:29:54 +0000
3+++ account_asset/account_asset_invoice.py 2013-12-04 15:40:10 +0000
4@@ -57,6 +57,7 @@
5 'partner_id': line.invoice_id.partner_id.id,
6 'company_id': line.invoice_id.company_id.id,
7 'currency_id': line.invoice_id.currency_id.id,
8+ 'purchase_date' : line.invoice_id.date_invoice,
9 }
10 changed_vals = asset_obj.onchange_category_id(cr, uid, [], vals['category_id'], context=context)
11 vals.update(changed_vals['value'])

Subscribers

People subscribed via source and target branches