Fix wrong indentation on test for deletion of Invoice

(transplanted from 4007a3630b27c15fbc89d52267e65edc54eff4ef)
This commit is contained in:
Cédric Krier committed 2013-08-05 19:06:46 +02:00
1 parent 6bbfb703ee
commit 337fee9138
1 file changed
+2 -2
+2 -2
View File
@@ -57,8 +57,8 @@ class Invoice:
cursor.execute('SELECT id FROM purchase_invoices_rel '
'WHERE invoice IN (' + ','.join(('%s',) * len(invoices)) + ')',
[i.id for i in invoices])
if cursor.fetchone():
cls.raise_user_error('delete_purchase_invoice')
if cursor.fetchone():
cls.raise_user_error('delete_purchase_invoice')
super(Invoice, cls).delete(invoices)
@classmethod