fix pyflake errors
review162011
This commit is contained in:
1 parent
56fa34181b
commit
9328ee2cae
2 files changed
-6
No files matched your search
@@ -1,7 +1,6 @@
|
||||
#This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
#this repository contains the full copyright notices and license terms.
|
||||
from trytond.model import ModelView, ModelSQL, fields
|
||||
from trytond.wizard import Wizard
|
||||
from trytond.pyson import If, Equal, Eval, Not, In, Get
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.pool import Pool
|
||||
@@ -183,7 +182,6 @@ class OrderPoint(ModelSQL, ModelView):
|
||||
return res
|
||||
|
||||
def get_location(self, ids, name):
|
||||
location_obj = Pool().get('stock.location')
|
||||
res = {}
|
||||
for op in self.browse(ids):
|
||||
if op.type == 'purchase':
|
||||
|
||||
@@ -121,7 +121,6 @@ class PurchaseRequest(ModelSQL, ModelView):
|
||||
"""
|
||||
pool = Pool()
|
||||
order_point_obj = pool.get('stock.order_point')
|
||||
purchase_request_obj = pool.get('purchase.request')
|
||||
product_obj = pool.get('product.product')
|
||||
location_obj = pool.get('stock.location')
|
||||
user_obj = pool.get('res.user')
|
||||
@@ -206,7 +205,6 @@ class PurchaseRequest(ModelSQL, ModelView):
|
||||
pool = Pool()
|
||||
uom_obj = pool.get('product.uom')
|
||||
request_obj = pool.get('purchase.request')
|
||||
product_supplier_obj = pool.get('purchase.product_supplier')
|
||||
req_ids = request_obj.search([
|
||||
('purchase_line', '=', False),
|
||||
('origin', 'like', 'stock.order_point,%'),
|
||||
@@ -568,7 +566,6 @@ class CreatePurchase(Wizard):
|
||||
request_obj = pool.get('purchase.request')
|
||||
party_obj = pool.get('party.party')
|
||||
purchase_obj = pool.get('purchase.purchase')
|
||||
product_obj = pool.get('product.product')
|
||||
line_obj = pool.get('purchase.line')
|
||||
date_obj = pool.get('ir.date')
|
||||
|
||||
@@ -665,7 +662,6 @@ class CreatePurchase(Wizard):
|
||||
|
||||
def compute_purchase_line(self, request):
|
||||
pool = Pool()
|
||||
party_obj = pool.get('party.party')
|
||||
product_obj = pool.get('product.product')
|
||||
tax_rule_obj = pool.get('account.tax.rule')
|
||||
|
||||
|
||||
Reference in new issue
Block a user