Skip to content

Commit

Permalink
[FIX] l10n_es_bank_statement: Sustituir utilizacion de eval por safe_…
Browse files Browse the repository at this point in the history
…eval
  • Loading branch information
hugosantosred committed Jun 25, 2015
1 parent 4608812 commit 07bd265
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#
##############################################################################
from openerp.osv import orm, fields
from openerp.tools.safe_eval import safe_eval
from openerp.tools.translate import _


Expand Down Expand Up @@ -55,7 +56,7 @@ def get_from_caixabank_rules(self, cr, uid, st_line, context=None):
"""
partner_obj = self.pool['res.partner']
st_line_obj = self.pool['account.bank.statement.line']
conceptos = eval(st_line['name'])
conceptos = safe_eval(st_line['name'])
ids = []
res = {}
# Try to match from VAT included in concept complementary record #02
Expand Down Expand Up @@ -103,7 +104,7 @@ def get_from_santander_rules(self, cr, uid, st_line, context=None):
"""
partner_obj = self.pool['res.partner']
st_line_obj = self.pool['account.bank.statement.line']
conceptos = eval(st_line['name'])
conceptos = safe_eval(st_line['name'])
ids = []
res = {}
# Try to match from VAT included in concept complementary record #01
Expand Down

0 comments on commit 07bd265

Please sign in to comment.