From 9328ee2cae3556e17f5eef49f5ac295ebee6d9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Wed, 2 Nov 2011 16:13:58 +0100 Subject: [PATCH] fix pyflake errors review162011 --- order_point.py | 2 -- purchase_request.py | 4 ---- 2 files changed, 6 deletions(-) diff --git a/order_point.py b/order_point.py index 678f8ca63b..f2a27e2afa 100644 --- a/order_point.py +++ b/order_point.py @@ -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': diff --git a/purchase_request.py b/purchase_request.py index 3a3f9684af..528badd311 100644 --- a/purchase_request.py +++ b/purchase_request.py @@ -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')