[FIX] PO invoice based on manual - lines

bzr revid: fp@tinyerp.com-20110117221213-ja4lgvb6txpnxb3p
This commit is contained in:
Fabien Pinckaers
2011-01-17 23:12:13 +01:00
parent ba4ea3ec76
commit b89db99ede
@@ -128,7 +128,7 @@ class purchase_line_invoice(osv.osv_memory):
'property_account_expense_categ', 'product.category',
context=context)
fpos = line.order_id.fiscal_position or False
a = account_fiscal_obj.map_account(cr, uid, fpos, a)
a = account_fiscal_obj.map_account(cr, uid, fpos, a).id
inv_id = invoice_line_obj.create(cr, uid, {
'name': line.name,
'origin': line.order_id.name,