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): '''