[FIX] API Improvement

This commit is contained in:
florian-dacosta
2014-07-23 17:30:02 +02:00
parent 1d1ae5741c
commit c6e8ea5500
8 changed files with 18 additions and 32 deletions

View File

@@ -26,22 +26,12 @@ from openerp.osv import fields
class AccountStatementProfil(Model):
_inherit = "account.statement.profile"
def get_import_type_selection(self, cr, uid, context=None):
def _get_import_type_selection(self, cr, uid, context=None):
"""
Has to be inherited to add parser
"""
res = super(AccountStatementProfil, self).get_import_type_selection(
res = super(AccountStatementProfil, self)._get_import_type_selection(
cr, uid, context=context)
res.append(('generic_csvxls_transaction',
'Generic .csv/.xls based on SO transaction ID'))
return res
_columns = {
'import_type': fields.selection(
get_import_type_selection,
'Type of import',
required=True,
help="Choose here the method by which you want to import "
"bank statement for this profile."),
}