ofxparse update

This commit is contained in:
Graeme Gellatly
2014-02-02 22:27:27 +13:00
parent 50f47bc31b
commit d005ec45b0
2 changed files with 43 additions and 27 deletions

View File

@@ -21,17 +21,17 @@
from openerp.tools.translate import _
from openerp.osv import fields, orm
class AccountStatementProfil(orm.Model):
class AccountStatementProfile(orm.Model):
_inherit = "account.statement.profile"
def get_import_type_selection(self, cr, uid, context=None):
"""
Inherited from parent to add parser.
"""
selection = super(AccountStatementProfil, self
).get_import_type_selection(cr, uid,
context=context)
selection.append(('ofx_so', _('OFX - Open Financial Exchange')))
selection = super(AccountStatementProfile, self
).get_import_type_selection(cr, uid, context=context)
selection.extend([('ofx_so', _('OFX - Open Financial Exchange')),
('ofx_alt', _('OFX - (memo rather than type in ref field)'))])
return selection
_columns = {