Purchase:

bugfix creating invoices: the journal of the invoice was not good

bzr revid: pinky-29b9b89d55fe59c713b44c5041f3dfe58ada84ea
This commit is contained in:
pinky 2007-02-06 14:53:39 +00:00
parent 63f1614bfe
commit bb33521eb1
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ class purchase_order(osv.osv):
'origin': o.name,
'invoice_line': il,
}
inv_id = self.pool.get('account.invoice').create(cr, uid, inv)
inv_id = self.pool.get('account.invoice').create(cr, uid, inv, {'type':'in_invoice'})
self.write(cr, uid, [o.id], {'invoice_id': inv_id})
res = inv_id