On 02/11/12 14:05, Cédric Krier wrote:
On 02/11/12 12:59 +0000, [email protected] wrote:
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):
Please explain the rational of this change?


See https://bugs.tryton.org/issue2871

--
Jordi Esteve
Consultor Zikzakmedia SL
[email protected]
Mòbil 679 170 693

Zikzakmedia SL
Dr. Fleming, 28, baixos
08720 Vilafranca del Penedès
Tel 93 890 2108

--
[email protected] mailing list

Reply via email to