pyflakes fixed

This commit is contained in:
resteve 2013-04-26 15:00:04 +02:00
parent 9db521a898
commit 5cc73aa23f
3 changed files with 2 additions and 6 deletions

View File

@ -5,7 +5,6 @@
from decimal import Decimal
from trytond.model import fields
from trytond.pyson import Eval
from trytond.transaction import Transaction
from trytond.pool import Pool, PoolMeta
__all__ = ['Sale', 'SaleLine']
@ -87,7 +86,6 @@ class SaleLine:
Return the margin of each sale lines
'''
Currency = Pool().get('currency.currency')
res = {}
if self.type == 'line':
cost = Decimal(str(self.quantity)) * (self.cost_price or Decimal('0.0'))
amount = Decimal(str(self.quantity)) * (self.unit_price)

View File

@ -5,7 +5,6 @@
from setuptools import setup
import re
import os
import ConfigParser
config = ConfigParser.ConfigParser()

View File

@ -12,9 +12,8 @@ if os.path.isdir(DIR):
import unittest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT, test_view,\
test_depends
from trytond.transaction import Transaction
from trytond.tests.test_tryton import test_view, test_depends
class SaleMarginTestCase(unittest.TestCase):
'''