Fix return value of tax rule apply when calling with False tax for issue962

This commit is contained in:
Cédric Krier committed 2009-04-10 11:54:14 +02:00
1 parent 6d709673f9
commit dcc968567b
1 file changed
+1 -1
+1 -1
View File
@@ -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):
'''