Fix typo in taxable_lines introduced in changeset 348360ba7fa2

This commit is contained in:
Cédric Krier
2015-01-02 16:25:27 +01:00
parent 3bb9fb4111
commit a115d401d7
+1 -1
View File
@@ -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 (