Skip to content

Commit

Permalink
[FIX] l10n_ar_account_tax_settlement: DeprecationWarning: invalid esc…
Browse files Browse the repository at this point in the history
…ape sequence '\.'

closes #383

Signed-off-by: Juan José Scarafía <jjs@adhoc.com.ar>
  • Loading branch information
zaoral committed May 9, 2024
1 parent 3af3b10 commit 68821ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_ar_account_tax_settlement/models/account_journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,7 @@ def retenciones_iva_files_values(self, move_lines):
content += fields.Date.from_string(payment.date).strftime('%d/%m/%Y')

# número comprobante (long 16)
content += re.sub('[^0-9\.]', '', payment.withholding_number).ljust(16, '0')
content += re.sub(r'[^0-9\.]', '', payment.withholding_number).ljust(16, '0')

# Aclaración importante: estamos agregando ceros entre el número de comprobante y el importe de retención
# esto contradice la especificación que dice que debe haber espacios pero en la tarea 31418 nos indicaron
Expand Down

0 comments on commit 68821ea

Please sign in to comment.