diff --git a/inventory/models.py b/inventory/models.py index 8a85fd29..9e43c3c1 100644 --- a/inventory/models.py +++ b/inventory/models.py @@ -593,6 +593,7 @@ class AdditionalServices(models.Model, LocalizedNameMixin): class Car(Base): + item_model = models.OneToOneField( ItemModel, models.DO_NOTHING, diff --git a/locale/ar/LC_MESSAGES/django.po b/locale/ar/LC_MESSAGES/django.po index 8bff4a73..a0951ff0 100644 --- a/locale/ar/LC_MESSAGES/django.po +++ b/locale/ar/LC_MESSAGES/django.po @@ -31,10 +31,7 @@ msgstr "" #: templates/inventory/transfer_details.html:89 #: templates/sales/estimates/estimate_detail.html:234 #: templates/sales/estimates/sale_order_form.html:123 -#: templates/sales/estimates/sale_order_preview.html:203 -#: templates/sales/invoices/invoice_detail.html:328 -#: templates/sales/orders/order_details.html:201 -#: templates/sales/orders/order_details.html:503 +#: templates/sales/estimates/sale_or ils.html:503 msgid "VIN" msgstr "رقم الهيكل" diff --git a/static/images/logos/no-content-new.jpg b/static/images/logos/no-content-new.jpg new file mode 100644 index 00000000..e71780d9 Binary files /dev/null and b/static/images/logos/no-content-new.jpg differ diff --git a/templates/crm/leads/lead_list.html b/templates/crm/leads/lead_list.html index 3dd7069c..e61a1a66 100644 --- a/templates/crm/leads/lead_list.html +++ b/templates/crm/leads/lead_list.html @@ -1,9 +1,11 @@ + {% extends 'base.html' %} {% load i18n static humanize %} {% block title %} {{ _("Leads") |capfirst }} {% endblock title %} {% block content %} +{% if page_obj.object_list %}

{{ _("Leads") |capfirst }} @@ -11,6 +13,7 @@

{% comment %} {% include "crm/leads/partials/update_action.html" %} {% endcomment %} +
@@ -26,6 +29,7 @@
{% include 'partials/search_box.html' %}
+
{% if page_obj.object_list %} @@ -201,26 +205,7 @@
- {% comment %} - {% if lead.opportunity.stage == "prospect" %} - {{ lead.opportunity.stage|upper }} - {% elif lead.opportunity.stage == "proposal" %} - {{ lead.opportunity.stage|upper }} - {% elif lead.opportunity.stage == "negotiation" %} - {{ lead.opportunity.stage|upper }} - {% elif lead.opportunity.stage == "closed_won" %} - {{ lead.opportunity.stage|upper }} - {% elif lead.opportunity.stage == "closed_lost" %} - {{ lead.opportunity.stage|upper }} - {% endif %} - {% endcomment %} - {% comment %} - {% if lead.opportunity %} - - Opportunity {{ lead.opportunity.lead}} - - {% endif %} - {% endcomment %} + {% if user == lead.staff.user or request.is_dealer %}
@@ -268,14 +253,15 @@
{% include 'partials/pagination.html' %}
{% endif %} - {% else %} - - {% trans "No Lead Yet" %} - - {% endif %} + + {% endif %}
+{% else %} +{% url 'lead_create' request.dealer.slug as create_lead_url %} +{% include "empty-illustration-page.html" with value="lead" url=create_lead_url %} +{% endif %} {% endblock %} {% block customJS %} {% endblock customJS %} + + diff --git a/templates/crm/leads/lead_tracking.html b/templates/crm/leads/lead_tracking.html index 55367f33..54d62cf9 100644 --- a/templates/crm/leads/lead_tracking.html +++ b/templates/crm/leads/lead_tracking.html @@ -168,6 +168,11 @@ {% endfor %} + {% if not new and not follow_up and not negotiation %} + {% url 'lead_create' request.dealer.slug as create_lead_url %} + {% include "empty-illustration-page.html" with value="lead" url=create_lead_url %} + {% endif %} + diff --git a/templates/crm/opportunities/opportunity_list.html b/templates/crm/opportunities/opportunity_list.html index a6224eed..5991dbec 100644 --- a/templates/crm/opportunities/opportunity_list.html +++ b/templates/crm/opportunities/opportunity_list.html @@ -5,6 +5,7 @@ {{ _("Opportunities") }} {% endblock title %} {% block content %} + {% if opportunities %}

@@ -87,6 +88,7 @@ {% endif %}

+
{% include 'crm/opportunities/partials/opportunity_grid.html' %} @@ -96,6 +98,10 @@
{% include 'partials/pagination.html' %}
{% endif %} +{% else %} +{% url 'opportunity_create' request.dealer.slug as create_opportunity_url %} +{% include "empty-illustration-page.html" with value="opportunity" url=create_opportunity_url %} +{% endif %} {% block customJS %}