From 219cc949a0174f22fe6f045c4613e33b20f89f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Mon, 22 Dec 2014 17:28:20 +0100 Subject: [PATCH] Fix flake8 errors introduced in changeset 610475eb7232 --- invoice.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/invoice.py b/invoice.py index 23009baa0e..a6322010d4 100644 --- a/invoice.py +++ b/invoice.py @@ -427,11 +427,7 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin): def _on_change_lines_taxes(self): pool = Pool() - Tax = pool.get('account.tax') InvoiceTax = pool.get('account.invoice.tax') - Configuration = pool.get('account.configuration') - - config = Configuration(1) self.untaxed_amount = Decimal('0.0') self.tax_amount = Decimal('0.0') @@ -1643,10 +1639,6 @@ class InvoiceLine(ModelSQL, ModelView, TaxableMixin): return {} def get_invoice_taxes(self, name): - pool = Pool() - Tax = pool.get('account.tax') - Invoice = pool.get('account.invoice') - if not self.invoice: return taxes_keys = self._get_taxes().keys()