From 3e350b4203d326c4e08a6313bd102ddd1e630286 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sun, 28 Sep 2014 14:07:18 +0200 Subject: [PATCH] [IMP] Some flake8 --- .../models/stock_inventory.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stock_inventory_preparation_filters/models/stock_inventory.py b/stock_inventory_preparation_filters/models/stock_inventory.py index 52ff31016..2ede73184 100644 --- a/stock_inventory_preparation_filters/models/stock_inventory.py +++ b/stock_inventory_preparation_filters/models/stock_inventory.py @@ -88,10 +88,7 @@ class StockInventory(orm.Model): vals = [] product_tmpl_obj = self.pool['product.template'] product_obj = self.pool['product.product'] - if not inventory.filter in ('categories', 'products', 'lots', 'empty'): - vals = super(StockInventory, self)._get_inventory_lines( - cr, uid, inventory, context=context) - elif inventory.filter in ('categories', 'products'): + if inventory.filter in ('categories', 'products'): product_ids = [] if inventory.filter == 'categories': product_tmpl_ids = product_tmpl_obj.search( @@ -144,4 +141,7 @@ class StockInventory(orm.Model): 'inventory_id': inventory.id, }, context=context) vals += values + else: + vals = super(StockInventory, self)._get_inventory_lines( + cr, uid, inventory, context=context) return vals