From 4c99182239deb093e7ff29a8963ee0c336ceb680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 25 Apr 2012 17:13:10 +0200 Subject: [PATCH] get_invoice_line takes invoice_type now (transplanted from 4b858296c2da5b079fafcedd977cb25c0042b4c6) --- sale.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sale.py b/sale.py index e53f19a174..396e02d614 100644 --- a/sale.py +++ b/sale.py @@ -182,11 +182,11 @@ class SaleLine(ModelSQL, ModelView): return new_ids[0] return new_ids - def get_invoice_line(self, line): + def get_invoice_line(self, line, invoice_type): pool = Pool() account_selection_obj = pool.get('analytic_account.account.selection') - res = super(SaleLine, self).get_invoice_line(line) + res = super(SaleLine, self).get_invoice_line(line, invoice_type) if not res: return res