~camptocamp/banking-addons/vre-preserve-manual-partial-reconcile

« back to all changes in this revision

Viewing changes to account_statement_base_import/wizard/import_statement.py

  • Committer: Guewen Baconnier
  • Author(s): Virgil Dupras
  • Date: 2013-07-22 09:06:56 UTC
  • mfrom: (90.2.5 purge-base-import)
  • Revision ID: guewen.baconnier@camptocamp.com-20130722090656-sm1zkp5tqq5tn72q
[IMP] Extracted the commission-handling feature from account_statement_base_import to a new module account_statement_commission.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        'journal_id': fields.many2one('account.journal',
56
56
                                      'Financial journal to use transaction'),
57
57
        'file_name': fields.char('File Name', size=128),
58
 
        'commission_account_id': fields.many2one('account.account',
59
 
                                                 'Commission account'),
60
 
        'commission_analytic_id': fields.many2one('account.analytic.account',
61
 
                                                 'Commission analytic account'),
62
58
        'receivable_account_id': fields.many2one('account.account',
63
59
                                                 'Force Receivable/Payable Account'),
64
60
        'force_partner_on_bank': fields.boolean(
80
76
            res = {'value':
81
77
                    {'partner_id': c.partner_id and c.partner_id.id or False,
82
78
                     'journal_id': c.journal_id and c.journal_id.id or False,
83
 
                     'commission_account_id':
84
 
                        c.commission_account_id and c.commission_account_id.id or False,
85
79
                     'receivable_account_id': c.receivable_account_id and c.receivable_account_id.id or False,
86
 
                     'commission_a': c.commission_analytic_id and c.commission_analytic_id.id or False,
87
80
                     'force_partner_on_bank': c.force_partner_on_bank,
88
81
                     'balance_check': c.balance_check,
89
82
                     }