Typo in purchase_refund, resulting in a 'general' type instead of

'supplier'
This commit is contained in:
Guewen Baconnier
2014-10-09 11:34:54 +02:00
parent f64774ca0e
commit 7f20dba3ec

View File

@@ -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)