Skip to content

Commit

Permalink
temp rebasing PR 203 (199ff99)
Browse files Browse the repository at this point in the history
  • Loading branch information
roboadhoc authored Feb 5, 2025
2 parents ee51f8d + 199ff99 commit 03a07eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion account_invoice_line_number/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def _compute_number(self):
self.number = False
if self and not isinstance(self[0].id, int):
return
mapping = eval(self[0].move_id.number_lines)
#TODO buscar alternativa al eval() ya que puede traer errores de seguridad
mapping = eval(self[0].move_id.number_lines) # pylint: disable=W0123
for line in self:
line.number = mapping.get(line.id)

0 comments on commit 03a07eb

Please sign in to comment.