Currency formatting is not possible using the 'C' locale
#13
Même chose avec brouillon

Code :
[2020-04-24 16:52:25] ERROR - django.request : Internal Server Error: /billing/generate_pdf/17
Traceback (most recent call last):
  File "/home/user/.virtualenvs/creme_2_1/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/home/user/.virtualenvs/creme_2_1/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/user/.virtualenvs/creme_2_1/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/user/.virtualenvs/creme_2_1/lib/python3.6/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/user/.virtualenvs/creme_2_1/lib/python3.6/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/srv/creme_crm-2.1/creme/billing/views/export.py", line 88, in export_as_pdf
    f.write(smart_str(template.render(context)))
UnicodeEncodeError: 'ascii' codec can't encode character '\\xe9' in position 854: ordinal not in range(128
  Répondre


Messages dans ce sujet
RE: Currency formatting is not possible using the 'C' locale - par tango.sierra - 24-04-2020, 16:54

Atteindre :


Utilisateur(s) parcourant ce sujet : 5 visiteur(s)