Reviewers: ,
Please review this at http://codereview.tryton.org/581004/ Affected files: M tax.py Index: tax.py =================================================================== --- a/tax.py +++ b/tax.py @@ -942,10 +942,11 @@ pattern['group'] = tax.group.id if tax and tax.group else None pattern['origin_tax'] = tax.id if tax else None + taxes = [] for line in self.lines: if line.match(pattern): - return line.get_taxes() - return tax and [tax.id] or None + taxes.extend(line.get_taxes()) + return taxes if taxes else tax and [tax.id] or None def update_rule(self, template2rule=None): ''' -- [email protected] mailing list
