From 0072adddb4dd70c1e1c007ebbd15ff91efa9e233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Mon, 22 Dec 2014 17:32:19 +0100 Subject: [PATCH] Fix flake8 errors introduced in changeset 3d55ada81f7e --- purchase.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/purchase.py b/purchase.py index 2794c8f875..1d9d94f361 100644 --- a/purchase.py +++ b/purchase.py @@ -408,12 +408,6 @@ class Purchase(Workflow, ModelSQL, ModelView, TaxableMixin): @fields.depends('lines', 'currency', 'party') def on_change_lines(self): - pool = Pool() - Tax = pool.get('account.tax') - Configuration = pool.get('account.configuration') - - config = Configuration(1) - self.untaxed_amount = Decimal('0.0') self.tax_amount = Decimal('0.0') self.total_amount = Decimal('0.0') @@ -453,8 +447,6 @@ class Purchase(Workflow, ModelSQL, ModelView, TaxableMixin): return 'invoice' def get_tax_amount(self): - pool = Pool() - Tax = pool.get('account.tax') taxes = self._get_taxes().itervalues() return sum(tax['amount'] for tax in taxes)