~camptocamp/c2c-financial-addons/trunk

« back to all changes in this revision

Viewing changes to account_statement_base_import/statement.py

  • Committer: Alexandre Fayolle @ camptocamp
  • Date: 2012-08-13 12:15:30 UTC
  • mfrom: (30.1.1 c2c-financial-addons-trunk)
  • Revision ID: alexandre.fayolle@camptocamp.com-20120813121530-9z0o3evkthnnz2ml
[MRG] from fix_spelling branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
import traceback
32
32
 
33
33
class AccountStatementProfil(Model):
34
 
    _inherit = "account.statement.profil"
 
34
    _inherit = "account.statement.profile"
35
35
    
36
36
    
37
37
    def get_import_type_selection(self, cr, uid, context=None):
48
48
        'last_import_date': fields.datetime("Last Import Date"),
49
49
        'rec_log': fields.text('log', readonly=True),
50
50
        'import_type': fields.selection(get_import_type_selection, 'Type of import', required=True, 
51
 
                help = "Choose here the method by which you want to import bank statement for this profil."),
 
51
                help = "Choose here the method by which you want to import bank statement for this profile."),
52
52
        
53
53
    }
54
54
    
152
152
        statement_obj = self.pool.get('account.bank.statement')
153
153
        statement_line_obj = self.pool.get('account.bank.statement.line')
154
154
        attachment_obj = self.pool.get('ir.attachment')
155
 
        prof_obj = self.pool.get("account.statement.profil")
 
155
        prof_obj = self.pool.get("account.statement.profile")
156
156
        if not profile_id:
157
157
            raise osv.except_osv(
158
158
                    _("No Profile !"),