Fix flake8 errors introduced in changeset 3d55ada81f7e

This commit is contained in:
Nicolas Évrard committed 2014-12-22 17:32:19 +01:00
1 parent 735126d7aa
commit 0072adddb4
1 file changed
-8
-8
View File
@@ -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)