From 72f84ecf351e323265e46bbd8af76061668f93da Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Wed, 21 May 2008 12:16:30 +0000 Subject: [PATCH] Bugfix bzr revid: fp@tinyerp.com-8c9f1d799249a60ff53fe086f667d2bc6817cdab --- addons/account/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 39e2b065d04..3d6109650ed 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -534,7 +534,7 @@ class account_invoice(osv.osv): if not number: number = self.pool.get('ir.sequence').get(cr, uid, 'account.invoice.' + invtype) - if type in ('in_invoice', 'in_refund'): + if invtype in ('in_invoice', 'in_refund'): ref = reference else: ref = self._convert_ref(cr, uid, number)