From b01c3d85ea4cd25ab1a06c0d147d4cac5b76e488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 27 Mar 2012 10:43:28 +0200 Subject: [PATCH] Replace wrong usage of False by None issue2512 --- carrier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/carrier.py b/carrier.py index 07024eb6a0..18b15c74c8 100644 --- a/carrier.py +++ b/carrier.py @@ -59,7 +59,7 @@ class Carrier(ModelSQL, ModelView): user = user_obj.browse(Transaction().user or Transaction().context.get('user')) return carrier.carrier_product.list_price, user.company.currency.id - return 0, False + return 0, None def get_purchase_price(self, carrier): 'Compute carrier purchase price with currency' @@ -67,6 +67,6 @@ class Carrier(ModelSQL, ModelView): if carrier.carrier_cost_method == 'product': user = user_obj.browse(Transaction().user) return carrier.carrier_product.cost_price, user.company.currency.id - return 0, False + return 0, None Carrier()