diff --git a/inventory/forms.py b/inventory/forms.py index d5a34498..52c69ed6 100644 --- a/inventory/forms.py +++ b/inventory/forms.py @@ -2268,7 +2268,7 @@ class CarDealershipRegistrationForm(forms.ModelForm): class CarDetailsEstimateCreate(forms.Form): customer = forms.ModelChoiceField( - queryset=Customer.objects.all(), + queryset=Customer.objects.filter(active=True), required=True, label="Customer", widget=forms.Select(attrs={"class": "form-control"}), diff --git a/inventory/views.py b/inventory/views.py index 2a3326c4..1f3b1de4 100644 --- a/inventory/views.py +++ b/inventory/views.py @@ -5005,7 +5005,7 @@ def create_estimate(request, dealer_slug, slug=None): customer = opportunity.customer print(customer) form.fields["customer"].queryset = models.Customer.objects.filter( - pk=customer.pk + pk=customer.pk ) form.initial["customer"] = customer diff --git a/templates/groups/group_detail.html b/templates/groups/group_detail.html index d4f269c8..0800b8f0 100644 --- a/templates/groups/group_detail.html +++ b/templates/groups/group_detail.html @@ -36,7 +36,8 @@

{{ _("Group Details") }}

- {% trans "Group List" %} + {% trans "Groups List" %} + {% trans "Staffs List" %}
diff --git a/templates/groups/group_list.html b/templates/groups/group_list.html index 98087fb9..7e7ad146 100644 --- a/templates/groups/group_list.html +++ b/templates/groups/group_list.html @@ -55,7 +55,7 @@ - {% trans 'view'|capfirst %} + {% trans 'view Permissions'|capfirst %} diff --git a/templates/header.html b/templates/header.html index 5a39dc54..2698966d 100644 --- a/templates/header.html +++ b/templates/header.html @@ -194,7 +194,7 @@ data-bs-parent="#navbarVerticalCollapse" id="nv-sales">
  • {% trans 'sales'|capfirst %}
  • - {% if perms.django_ledger.add_estimatemodel %} + {% comment %} {% if perms.django_ledger.add_estimatemodel %} - {% endif %} + {% endif %} {% endcomment %} {% if perms.django_ledger.view_estimatemodel %}
    {% endif %} - {% if car.ready %} + {% if car.ready and car.status != 'sold' %}
    - {% trans "Cancel" %}
    {% endblock %} + diff --git a/templates/purchase_orders/po_delete.html b/templates/purchase_orders/po_delete.html index bfd337aa..28f22968 100644 --- a/templates/purchase_orders/po_delete.html +++ b/templates/purchase_orders/po_delete.html @@ -18,8 +18,8 @@ Purchase Order {{ po_model.po_number }}?{% endblocktrans %}

    - {% trans "All transactions associated with this Purchase Order will be deleted. - If you want to void the PO instead," %} {% trans "click here" %}

    @@ -33,3 +33,5 @@
    {% endblock %} + + diff --git a/templates/sales/estimates/sale_order_form.html b/templates/sales/estimates/sale_order_form.html index 80d7cefe..0d834097 100644 --- a/templates/sales/estimates/sale_order_form.html +++ b/templates/sales/estimates/sale_order_form.html @@ -28,7 +28,7 @@ {% trans 'Save' %} - {% trans "Cancel" %} @@ -40,3 +40,4 @@
    {% endblock content %} +