bzr revid: fp@tinyerp.com-8c9f1d799249a60ff53fe086f667d2bc6817cdab
This commit is contained in:
Fabien Pinckaers
2008-05-21 12:16:30 +00:00
parent 58f0d3d6f1
commit 72f84ecf35
+1 -1
View File
@@ -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)