Purchase:
bugfix creating invoices: the journal of the invoice was not good bzr revid: pinky-29b9b89d55fe59c713b44c5041f3dfe58ada84ea
This commit is contained in:
parent
63f1614bfe
commit
bb33521eb1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue