← Back to team overview

openerp-community-reviewer team mailing list archive

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

 

Pedro Manuel Baeza has proposed merging lp:~pedro.baeza/ocb-addons/6.1-fix-935564 into lp:ocb-addons/6.1.

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

Requested reviews:
  OpenERP Community Backports Team (ocb)

For more details, see:
https://code.launchpad.net/~pedro.baeza/ocb-addons/6.1-fix-935564/+merge/197737

Corrects the bug #935564, as made on 7.0 on revision 7613.
-- 
https://code.launchpad.net/~pedro.baeza/ocb-addons/6.1-fix-935564/+merge/197737
Your team OpenERP Community Backports Team is requested to review the proposed merge of lp:~pedro.baeza/ocb-addons/6.1-fix-935564 into lp:ocb-addons/6.1.
=== modified file 'account_asset/account_asset_invoice.py'
--- account_asset/account_asset_invoice.py	2011-11-11 19:29:54 +0000
+++ account_asset/account_asset_invoice.py	2013-12-04 15:40:10 +0000
@@ -57,6 +57,7 @@
                     'partner_id': line.invoice_id.partner_id.id,
                     'company_id': line.invoice_id.company_id.id,
                     'currency_id': line.invoice_id.currency_id.id,
+                    'purchase_date' : line.invoice_id.date_invoice,
                 }
                 changed_vals = asset_obj.onchange_category_id(cr, uid, [], vals['category_id'], context=context)
                 vals.update(changed_vals['value'])


Follow ups