11-03-2021, 16:24
(11-03-2021, 16:21)genglert a écrit : Bonjour,
l'erreur 500 doit sûrement écrire des messages dans votre terminal (si serveur de développement) ou dans vos logs (Apache et cie). Sans donner lesdits messages il va être difficile de vous aider.
[2021-03-11 15:23:56] CRITICAL - creme.creme_core.gui.custom_form : CustomFormDescriptor.groups(): it seems no instance of CustomFormConfigItem with the id="billing-sales_order_creation" has been populated.
[2021-03-11 15:23:56] ERROR - django.request : Internal Server Error: /billing/sales_order/add
Traceback (most recent call last):
File "/home/debian/.local/share/virtualenvs/creme_2_2/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/home/debian/.local/share/virtualenvs/creme_2_2/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/debian/.local/share/virtualenvs/creme_2_2/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/debian/.local/share/virtualenvs/creme_2_2/lib/python3.7/site-packages/django/views/generic/base.py", line 71, in view
return self.dispatch(request, *args, **kwargs)
File "/home/debian/Logiciels/creme_crm-2.2.0/creme/creme_core/views/generic/add.py", line 77, in dispatch
return super().dispatch(request, *args, **kwargs)
File "/home/debian/.local/share/virtualenvs/creme_2_2/lib/python3.7/site-packages/django/views/generic/base.py", line 97, in dispatch
return handler(request, *args, **kwargs)
File "/home/debian/.local/share/virtualenvs/creme_2_2/lib/python3.7/site-packages/django/views/generic/edit.py", line 168, in get
return super().get(request, *args, **kwargs)
File "/home/debian/.local/share/virtualenvs/creme_2_2/lib/python3.7/site-packages/django/views/generic/edit.py", line 133, in get
return self.render_to_response(self.get_context_data())
File "/home/debian/Logiciels/creme_crm-2.2.0/creme/creme_core/views/generic/add.py", line 80, in get_context_data
context = super().get_context_data(**kwargs)
File "/home/debian/.local/share/virtualenvs/creme_2_2/lib/python3.7/site-packages/django/views/generic/edit.py", line 66, in get_context_data
kwargs['form'] = self.get_form()
File "/home/debian/.local/share/virtualenvs/creme_2_2/lib/python3.7/site-packages/django/views/generic/edit.py", line 32, in get_form
form_class = self.get_form_class()
File "/home/debian/Logiciels/creme_crm-2.2.0/creme/creme_core/views/generic/add.py", line 88, in get_form_class
return self.get_custom_form_class(super().get_form_class())
File "/home/debian/Logiciels/creme_crm-2.2.0/creme/creme_core/views/generic/base.py", line 303, in get_custom_form_class
return form_class.build_form_class()
File "/home/debian/Logiciels/creme_crm-2.2.0/creme/creme_core/gui/custom_form.py", line 950, in build_form_class
return self.groups(item).form_class(
File "/home/debian/Logiciels/creme_crm-2.2.0/creme/creme_core/gui/custom_form.py", line 927, in groups
item = item or item_model.objects.get(cform_id=self.id)
File "/home/debian/.local/share/virtualenvs/creme_2_2/lib/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/debian/.local/share/virtualenvs/creme_2_2/lib/python3.7/site-packages/django/db/models/query.py", line 408, in get
self.model._meta.object_name
creme.creme_core.models.custom_form.CustomFormConfigItem.DoesNotExist: CustomFormConfigItem matching query does not exist.
[11/Mar/2021 15:23:56] SERVER: "GET /billing/sales_order/add HTTP/1.1" 500 4256
[11/Mar/2021 15:23:56] SERVER: "GET /static_media/common/images/500_200-d182255205c633442c9afce70f3b564d6ff4ac77.png HTTP/1.1" 304 0
[11/Mar/2021 15:23:56] SERVER: "GET /static_media/common/images/creme-pattern-d7695a38c535a482b5b2b8d31640920c82582ade.png HTTP/1.1" 304 0