mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] API Improvement
This commit is contained in:
@@ -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."),
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user