Merge lp:~openerp-dev/openobject-addons/6.1-opw-579898-skh into lp:openobject-addons/6.1

Proposed by Somesh Khare
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 7012
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-579898-skh
Merge into: lp:openobject-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:~openerp-dev/openobject-addons/6.1-opw-579898-skh
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+127748@code.launchpad.net

Description of the change

Hello Sir,

[FIX]account_asset_invoice: Asset created from the invoice did not have the purchase date as invoice date, here it has current date.

Steps:
1. Create a Purchase order for the product eg: Test Asset.
2. Select Asset Category into the Invoice line of the created Invoice and Approve this Invoice after giving the Invoice date eg: 10/03/2012.
3. Go to the menu Accounting/Assets/Assets and check the Purchase Order Date: It is your current date.

Expected result: It should be Invoiced date.

Kindly review the branch and please share your views on it.

Thanks & Regards,
Somesh Khare

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug was qualified as Already Fixed on Trunk (means that it was already fixed and merged in Trunk). If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Unmerged revisions

7012. By Luc De Meyer (Noviat)

[FIX]account_asset_invoice: Asset created from the invoice did not have the invoice date it has current date(Case: ref 579898)

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 2012-10-03 12:51:28 +0000
4@@ -53,6 +53,7 @@
5 'code': line.invoice_id.number or False,
6 'category_id': line.asset_category_id.id,
7 'purchase_value': line.price_subtotal,
8+ 'purchase_date': line.invoice_id.date_invoice,
9 'period_id': line.invoice_id.period_id.id,
10 'partner_id': line.invoice_id.partner_id.id,
11 'company_id': line.invoice_id.company_id.id,