Merge pull request #49 from guewen/typo-purchase-refund

Typo in purchase_refund, resulting in a 'general' type instead of 'supplier'
This commit is contained in:
Guewen Baconnier
2014-11-25 07:59:52 +01:00

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=ctx)