Reviewers: ,
Please review this at http://codereview.tryton.org/162011/ Affected files: M order_point.py M purchase_request.py Index: order_point.py =================================================================== --- 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 @@ 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': Index: purchase_request.py =================================================================== --- a/purchase_request.py +++ b/purchase_request.py @@ -121,7 +121,6 @@ """ 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 @@ 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 @@ 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 @@ 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') -- [email protected] mailing list
