[IMP] account_statement_base_import: private method that returns import type to ease inheritance

[IMP] account_statement_ofx_import: changed accordingly previous improvement
This commit is contained in:
Pedro M. Baeza
2013-12-24 19:16:40 +01:00
parent 190373c306
commit 3e4eb10958
2 changed files with 6 additions and 16 deletions

View File

@@ -31,12 +31,13 @@ from parser import new_bank_statement_parser
class AccountStatementProfil(Model):
_inherit = "account.statement.profile"
def get_import_type_selection(self, cr, uid, context=None):
"""
Has to be inherited to add parser
"""
def _get_import_type_selection(self, cr, uid, context=None):
"""This is the method to be inherited for adding the parser"""
return [('generic_csvxls_so', 'Generic .csv/.xls based on SO Name')]
def get_import_type_selection(self, cr, uid, context=None):
return _get_import_type selection(cr, uid, context=context)
_columns = {
'launch_import_completion': fields.boolean(
"Launch completion after import",