From 1b6498c3f8c9b72befba0bcb4f8bb6fca55619db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 31 Dec 2010 12:28:56 +0100 Subject: [PATCH] Remove trailing space --- product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product.py b/product.py index 098a26ab2b..0d2a546284 100644 --- a/product.py +++ b/product.py @@ -11,11 +11,11 @@ class Product(ModelSQL, ModelView): price_list_obj = self.pool.get('product.price_list') res = super(Product, self).get_sale_price(ids, quantity=quantity) - if (Transaction().context.get('price_list') + if (Transaction().context.get('price_list') and Transaction().context.get('customer')): for product in self.browse(ids): res[product.id] = price_list_obj.compute( - Transaction().context['price_list'], + Transaction().context['price_list'], Transaction().context['customer'], product, res[product.id], quantity, Transaction().context.get('uom', product.default_uom))