account create missing coa_pk

This commit is contained in:
Faheed 2025-09-07 17:12:05 +03:00
parent 75f5874814
commit f19b936ff8
6 changed files with 3 additions and 2 deletions

View File

@ -4366,6 +4366,7 @@ class AccountListView(LoginRequiredMixin, PermissionRequiredMixin, ListView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["url_kwargs"] = self.kwargs
context["coa_pk"] = self.kwargs["coa_pk"]
return context

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB

View File

@ -9,7 +9,7 @@
</div>
<div class="flex-grow-1">
<h5 class="fw-bold mb-0">
{{ coa_model.name }}
{% if coa_model.is_default %}
<span class="badge bg-light text-primary ms-2 d-none d-sm-inline">{% trans 'DEFAULT' %}</span>
{% endif %}

View File

@ -200,7 +200,7 @@
</div>
</div>
{% else %}
{% url "account_create" request.dealer.slug as create_account_url %}
{% url 'account_create' request.dealer.slug coa_pk as create_account_url %}
{% include "empty-illustration-page.html" with value="account" url=create_account_url %}
{% endif %}
{% endblock %}