fix qs
This commit is contained in:
parent
e680e3aaea
commit
a987a6bceb
@ -5522,7 +5522,7 @@ def lead_create(request,dealer_slug):
|
|||||||
is_sa_import=True, pk__in=dealer_make_list
|
is_sa_import=True, pk__in=dealer_make_list
|
||||||
)
|
)
|
||||||
form.fields["staff"].queryset = form.fields["staff"].queryset.filter(
|
form.fields["staff"].queryset = form.fields["staff"].queryset.filter(
|
||||||
dealer=dealer,staff_member__user__groups__permissions__codename__contains="add_lead")
|
dealer=dealer,staff_member__user__groups__permissions__codename__contains="add_lead").distinct()
|
||||||
|
|
||||||
|
|
||||||
if hasattr(request.user.staffmember, "staff"):
|
if hasattr(request.user.staffmember, "staff"):
|
||||||
|
|||||||
@ -190,7 +190,7 @@
|
|||||||
</td> {% endcomment %}
|
</td> {% endcomment %}
|
||||||
<td class="align-middle white-space-nowrap text-body-tertiary text-opacity-85 fw-semibold text-body-highlight">
|
<td class="align-middle white-space-nowrap text-body-tertiary text-opacity-85 fw-semibold text-body-highlight">
|
||||||
{% if lead.opportunity %}
|
{% if lead.opportunity %}
|
||||||
<a href="{% url 'opportunity_detail' lead.opportunity.slug %}">
|
<a href="{% url 'opportunity_detail' request.dealer.slug lead.opportunity.slug %}">
|
||||||
<span class="badge badge-phoenix badge-phoenix-success">Opportunity {{ lead.opportunity.lead}} <i class="fa-solid fa-arrow-up-right-from-square"></i></span>
|
<span class="badge badge-phoenix badge-phoenix-success">Opportunity {{ lead.opportunity.lead}} <i class="fa-solid fa-arrow-up-right-from-square"></i></span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@ -120,7 +120,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if perms.django_ledger.view_customermodel %}
|
{% if perms.inventory.view_lead %}
|
||||||
<div class="nav-item-wrapper">
|
<div class="nav-item-wrapper">
|
||||||
<a class="nav-link dropdown-indicator label-1" href="#nv-crm" role="button" data-bs-toggle="collapse" aria-expanded="false" aria-controls="nv-crm">
|
<a class="nav-link dropdown-indicator label-1" href="#nv-crm" role="button" data-bs-toggle="collapse" aria-expanded="false" aria-controls="nv-crm">
|
||||||
<div class="d-flex align-items-center">
|
<div class="d-flex align-items-center">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user