~camptocamp/c2c-financial-addons/trunk

« back to all changes in this revision

Viewing changes to account_statement_ext/report/bank_statement_report.py

  • Committer: Joël Grand-Guillaume
  • Date: 2012-06-11 06:13:37 UTC
  • Revision ID: joel.grandguillaume@camptocamp.com-20120611061337-n1yji5we5subxb70
[MRG] From last dev on customer branch: finaly we override the way the bank statement work instead of having another object. You have now profil on bank statement to configure the generated entries once posted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        company = self.pool.get('res.users').browse(self.cr, uid, uid, context=context).company_id
42
42
        header_report_name = ' - '.join((_('BORDEREAU DE REMISE DE CHEQUES'),
43
43
                                         company.name, company.currency_id.name))
44
 
        statement = self.pool.get('account.treasury.statement').browse(cursor,uid,context['active_id']);
 
44
        statement = self.pool.get('account.bank.statement').browse(cursor,uid,context['active_id']);
45
45
        footer_date_time = self.formatLang(str(datetime.today())[:19], date_time=True)
46
46
        self.localcontext.update({
47
47
            'cr': cursor,
67
67
        return statement_lines
68
68
 
69
69
webkit_report.WebKitParser('report.report_bank_statement_webkit',
70
 
                           'account.treasury.statement',
 
70
                           'account.bank.statement',
71
71
                           'addons/account_statement_import/report/bank_statement_report.mako',
72
72
                           parser=BankStatementWebkit)