Replace wrong usage of False by None

issue2512
This commit is contained in:
Cédric Krier
2012-03-27 10:43:28 +02:00
parent 372a1ae351
commit b01c3d85ea
+2 -2
View File
@@ -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()