~akretion-team/banking-addons/bank-statement-reconcile-7.0-file-exchange

« back to all changes in this revision

Viewing changes to account_statement_file_document/file_document.py

  • Committer: Sebastien Beau
  • Author(s): Arthur Vuillard
  • Date: 2013-08-12 09:03:45 UTC
  • Revision ID: arthur.vuillard@akretion.com-20130812090345-361s19rp0kyd9lh5
Updates for OpenERP 7.0 compatibility

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        acc_profile_obj = self.pool['account.statement.profile']
43
43
        attach_obj = self.pool['ir.attachment']
44
44
        if filedocument.file_type == 'bank_statement':
45
 
            (shortname, ftype) = os.path.splitext(filedocument.name)
 
45
            (shortname, ftype) = os.path.splitext(filedocument.datas_fname)
46
46
            acc_profile_obj.statement_import(
47
47
                                            cr,
48
48
                                            uid,
51
51
                                            filedocument.datas,
52
52
                                            ftype.replace('.', ''),
53
53
                                            context=context
54
 
                                        )
 
 
b'\\ No newline at end of file'
 
54
                                        )