[FIX] account_asset : Assets Date should be taken form invoice date rather than current date
lp bug: https://launchpad.net/bugs/935564 fixed bzr revid: amp@tinyerp.com-20120320064457-o6zc3khmkrh0q4bh
This commit is contained in:
parent
5704fccaec
commit
799c70694c
|
@ -57,6 +57,7 @@ class account_invoice_line(osv.osv):
|
|||
'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'])
|
||||
|
|
Loading…
Reference in New Issue