comma missing in the allowed_models of manager
This commit is contained in:
parent
08d3429a2b
commit
fed9c20bb4
@ -2606,7 +2606,7 @@ class CustomGroup(models.Model):
|
|||||||
"activity",
|
"activity",
|
||||||
"opportunity",
|
"opportunity",
|
||||||
"vendor",
|
"vendor",
|
||||||
"customer"
|
"customer",
|
||||||
"notes",
|
"notes",
|
||||||
"tasks",
|
"tasks",
|
||||||
"activity",
|
"activity",
|
||||||
|
|||||||
@ -9922,7 +9922,7 @@ class PurchaseOrderListView(LoginRequiredMixin, PermissionRequiredMixin, ListVie
|
|||||||
return self.model.objects.filter(entity=dealer.entity)
|
return self.model.objects.filter(entity=dealer.entity)
|
||||||
|
|
||||||
# def get_queryset(self):
|
# def get_queryset(self):
|
||||||
# dealer = get_user_type(self.request)
|
# dealer = get_object_or_404(models.Dealer, slug=self.kwargs["dealer_slug"])
|
||||||
# entity = dealer.entity
|
# entity = dealer.entity
|
||||||
# queryset = self.model.objects.filter(entity=entity)
|
# queryset = self.model.objects.filter(entity=entity)
|
||||||
|
|
||||||
|
|||||||
@ -129,7 +129,7 @@
|
|||||||
<p class="mb-0 fs-9 text-body">{{tx.customer.phone_number}}</p>
|
<p class="mb-0 fs-9 text-body">{{tx.customer.phone_number}}</p>
|
||||||
</td>
|
</td>
|
||||||
<td class="align-middle white-space-nowrap quotation">
|
<td class="align-middle white-space-nowrap quotation">
|
||||||
{% if tx.estimate %}
|
{% if tx.estimate and perms.django_ledger.view_estimatemodel%}
|
||||||
<p class="fw-bo text-body fs-9 mb-0">
|
<p class="fw-bo text-body fs-9 mb-0">
|
||||||
<a href="{% url 'estimate_detail' request.dealer.slug tx.estimate.uuid %}">
|
<a href="{% url 'estimate_detail' request.dealer.slug tx.estimate.uuid %}">
|
||||||
{{ tx.estimate.estimate_number}}
|
{{ tx.estimate.estimate_number}}
|
||||||
@ -147,7 +147,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td class="align-middle white-space-nowrap invoice">
|
<td class="align-middle white-space-nowrap invoice">
|
||||||
{% if tx.invoice %}
|
{% if tx.invoice and perms.django_ledger.view_invoicemodel%}
|
||||||
<p class="fw-bo text-body fs-9 mb-0">
|
<p class="fw-bo text-body fs-9 mb-0">
|
||||||
<a href="{% url 'invoice_detail' request.dealer.slug tx.invoice.uuid %}">
|
<a href="{% url 'invoice_detail' request.dealer.slug tx.invoice.uuid %}">
|
||||||
{{tx.invoice.invoice_number}}
|
{{tx.invoice.invoice_number}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user