From dcc968567be9af56695ea32a76d3e7cf8f5e6f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 10 Apr 2009 11:54:14 +0200 Subject: [PATCH] Fix return value of tax rule apply when calling with False tax for issue962 --- tax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tax.py b/tax.py index 50ed8bfbe3..b25b941c59 100644 --- a/tax.py +++ b/tax.py @@ -957,7 +957,7 @@ class Rule(ModelSQL, ModelView): context=context): return rule_line_obj.get_taxes(cursor, user, line, context=context) - return [tax.id] + return tax and [tax.id] or False def update_rule(self, cursor, user, rule, context=None, template2rule=None): '''