From 337fee9138029ecdb62ed8a13d58e7b434e5760f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 5 Aug 2013 19:06:46 +0200 Subject: [PATCH] Fix wrong indentation on test for deletion of Invoice (transplanted from 4007a3630b27c15fbc89d52267e65edc54eff4ef) --- invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invoice.py b/invoice.py index d04b3a367d..9199d5991c 100644 --- a/invoice.py +++ b/invoice.py @@ -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