update
This commit is contained in:
parent
35bc6fb767
commit
679b7fbb89
@ -6224,6 +6224,7 @@ class OpportunityListView(LoginRequiredMixin, ListView):
|
||||
template_name = "crm/opportunities/opportunity_list.html"
|
||||
context_object_name = "opportunities"
|
||||
paginate_by = 30
|
||||
permission_required = ["inventory.view_opportunity"]
|
||||
|
||||
def get_queryset(self):
|
||||
dealer = get_user_type(self.request)
|
||||
|
||||
@ -77,12 +77,13 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if perms.inventory.add_opportunity %}
|
||||
<div class="d-flex justify-content-end">
|
||||
<a class="btn btn-phoenix-primary btn-sm" href="{% url 'opportunity_create' request.dealer.slug %}">
|
||||
<span class="fas fa-plus me-2"></span>{{ _("Add Opportunity") }}
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user