Replace wrong usage of False by None

issue2512
This commit is contained in:
Cédric Krier committed 2012-03-27 10:44:02 +02:00
1 parent 2be26d7d22
commit ed56a0640f
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -90,7 +90,7 @@ class Sale(Model):
today = date_obj.today()
cost, currency_id = 0, False
cost, currency_id = 0, None
if values.get('carrier'):
carrier = carrier_obj.browse(values['carrier'])
with Transaction().set_context(
@@ -143,7 +143,7 @@ class Sale(Model):
continue
taxes.append(tax.id)
if party and party.customer_tax_rule:
tax_ids = tax_rule_obj.apply(party.customer_tax_rule, False,
tax_ids = tax_rule_obj.apply(party.customer_tax_rule, None,
pattern)
if tax_ids:
taxes.extend(tax_ids)
+1 -1
View File
@@ -144,7 +144,7 @@ class ShipmentOut(Model):
pattern = self._get_cost_tax_rule_pattern(shipment)
for tax in product.customer_taxes_used:
if party.customer_tax_rule:
tax_ids = tax_rule_obj.apply(party.customer_tax_rule, False,
tax_ids = tax_rule_obj.apply(party.customer_tax_rule, None,
pattern)
if tax_ids:
taxes.extend(tax_ids)