From aebf1742a44bba3ff72ea50dbdd0400e32db6a0a 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 bf7c732dd1..3bf5f560f1 100644 --- a/invoice.py +++ b/invoice.py @@ -56,8 +56,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