From bb33521eb13a7c8883836d987fda98a21af53d3a Mon Sep 17 00:00:00 2001 From: pinky <> Date: Tue, 6 Feb 2007 14:53:39 +0000 Subject: [PATCH] Purchase: bugfix creating invoices: the journal of the invoice was not good bzr revid: pinky-29b9b89d55fe59c713b44c5041f3dfe58ada84ea --- addons/purchase/purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 51700e32ea9..4bb69e33f28 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -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