From a115d401d7c6240ab11df6cf5c1945056defb74c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 2 Jan 2015 16:25:27 +0100 Subject: [PATCH] Fix typo in taxable_lines introduced in changeset 348360ba7fa2 --- sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sale.py b/sale.py index 20910534e9..2bd7d68f50 100644 --- a/sale.py +++ b/sale.py @@ -432,7 +432,7 @@ class Sale(Workflow, ModelSQL, ModelView, TaxableMixin): # In case we're called from an on_change we have to use some sensible # defaults for line in self.lines: - if getattr(self, 'type', None) != 'line': + if getattr(line, 'type', None) != 'line': continue taxable_lines.append(tuple()) for attribute, default_value in (