From 7f20dba3ec446f96e6ee51c78ccff15e1ac16c5a Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Thu, 9 Oct 2014 11:34:54 +0200 Subject: [PATCH] Typo in purchase_refund, resulting in a 'general' type instead of 'supplier' --- statement_voucher_killer/voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statement_voucher_killer/voucher.py b/statement_voucher_killer/voucher.py index b924b8a1..24575815 100644 --- a/statement_voucher_killer/voucher.py +++ b/statement_voucher_killer/voucher.py @@ -69,7 +69,7 @@ class AccountStatementFromInvoiceLines(orm.TransientModel): s_type = 'general' if line.journal_id.type in ('sale', 'sale_refund'): s_type = 'customer' - elif line.journal_id.type in ('purchase', 'purhcase_refund'): + elif line.journal_id.type in ('purchase', 'purchase_refund'): s_type = 'supplier' vals = self._prepare_statement_line_vals( cr, uid, line, s_type, statement_id, amount, context=context)