pyflakes fixed
This commit is contained in:
parent
9db521a898
commit
5cc73aa23f
2
sale.py
2
sale.py
|
@ -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)
|
||||
|
|
1
setup.py
1
setup.py
|
@ -5,7 +5,6 @@
|
|||
|
||||
from setuptools import setup
|
||||
import re
|
||||
import os
|
||||
import ConfigParser
|
||||
|
||||
config = ConfigParser.ConfigParser()
|
||||
|
|
|
@ -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):
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue