~openerp-luxembourg/openobject-addons/6.0-luxembourg-localization-addons

« back to all changes in this revision

Viewing changes to account_payment_import_multiline/wizard/wizard_account_statement_line_reconcile.py

  • Committer: Xavier ALT
  • Date: 2012-01-13 12:16:00 UTC
  • Revision ID: xavier@thamini.com-20120113121600-7hfdt9dk3la7vgj5
[FIX] wizard 'statement line reconcile': voucher account_id shoud be default debit/credit account

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
                                        ttype=voucher_type,
110
110
                                        date=line.date,
111
111
                                        context=voucher_context)
 
112
 
 
113
        if line.amount >= 0:
 
114
            account_id = statement.journal_id.default_credit_account_id.id
 
115
        else:
 
116
            account_id = statement.journal_id.default_debit_account_id.id
 
117
 
112
118
        voucher_data = {
113
119
                'type': voucher_type,
114
120
                'name': line.name,
115
121
                'partner_id': line.partner_id.id or False,
116
122
                'period_id': statement.period_id.id,
117
123
                'journal_id': statement.journal_id.id,
118
 
                'account_id': line.account_id.id,
 
124
                'account_id': account_id,
119
125
                'company_id': statement.company_id.id,
120
126
                'currency_id': statement_currency_id,
121
127
                'date': line.date,