From a279e3d799a84c8b18b2669c1ff84ecdc0a8489a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 10 Sep 2013 13:55:53 +0200 Subject: [PATCH] TableHandler.drop_table requires table name not table instance --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index 2449d65950..7e5dbdc3c0 100644 --- a/invoice.py +++ b/invoice.py @@ -138,7 +138,7 @@ class InvoiceLine: values=['sale.line,%s' % sale_line], where=sql_table.id == invoice_line)) TableHandler.drop_table(cursor, - 'sale.line-account.invoice.line', rel_table) + 'sale.line-account.invoice.line', rel_table_name) @classmethod def _get_origin(cls):