Skip to content

Commit

Permalink
Merge pull request #190 from factorlibre/7.0-fix-eval-bank-statement
Browse files Browse the repository at this point in the history
[FIX] l10n_es_bank_statement: Sustituir utilizacion de eval por safe_eval
  • Loading branch information
pedrobaeza committed Jun 25, 2015
2 parents 4608812 + 07bd265 commit 7fc55df
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 7fc55df

Please sign in to comment.