From 683ab59cfd576b0b25e096b76254847f2b3ba718 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Thu, 16 Sep 2010 16:45:39 +0200 Subject: [PATCH] fix bzr revid: fp@tinyerp.com-20100916144539-gpu2uyk7eynf7wqx --- addons/account_voucher/voucher.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/addons/account_voucher/voucher.py b/addons/account_voucher/voucher.py index c5d3f605e9a..57b74d948d8 100644 --- a/addons/account_voucher/voucher.py +++ b/addons/account_voucher/voucher.py @@ -547,9 +547,6 @@ class account_voucher(osv.osv): if inv.move_id: continue - if not inv.line_ids: - raise osv.except_osv(_('Error !'), _('You can not validate a voucher without lines !')) - if inv.journal_id.sequence_id: name = self.pool.get('ir.sequence').get_id(cr, uid, inv.journal_id.sequence_id.id) else: