From ed56a0640f41c14bfd751e7cee14500578ef6a4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 27 Mar 2012 10:44:02 +0200 Subject: [PATCH] Replace wrong usage of False by None issue2512 --- sale.py | 4 ++-- stock.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sale.py b/sale.py index fb3ed90b0e..052fa22da6 100644 --- a/sale.py +++ b/sale.py @@ -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) diff --git a/stock.py b/stock.py index baf6c5b934..e83703819f 100644 --- a/stock.py +++ b/stock.py @@ -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)