diff --git a/inventory/models.py b/inventory/models.py
index a5af10d4..367861e5 100644
--- a/inventory/models.py
+++ b/inventory/models.py
@@ -3079,7 +3079,7 @@ class CustomGroup(models.Model):
"view_saleorder",
"view_leads",
"view_opportunity",
- "view_customers",
+ "view_customer",
],
)
self.set_permissions(
diff --git a/inventory/views.py b/inventory/views.py
index 5988b394..8a1a3dd1 100644
--- a/inventory/views.py
+++ b/inventory/views.py
@@ -9477,10 +9477,15 @@ def ledger_unpost_all_journals(request, dealer_slug, entity_slug, pk):
@login_required
@permission_required("inventory.change_dealer", raise_exception=True)
def pricing_page(request, dealer_slug):
- get_object_or_404(models.Dealer, slug=dealer_slug)
- plan_list = PlanPricing.objects.all()
- form = forms.PaymentPlanForm()
- return render(request, "pricing_page.html", {"plan_list": plan_list, "form": form})
+ dealer=get_object_or_404(models.Dealer, slug=dealer_slug)
+ if not dealer.active_plan:
+ plan_list = PlanPricing.objects.all()
+ form = forms.PaymentPlanForm()
+ return render(request, "pricing_page.html", {"plan_list": plan_list, "form": form})
+ else:
+ messages.info(request,_("You already have an plan!!"))
+ return redirect('home',dealer_slug=dealer_slug)
+
@login_required
diff --git a/templates/403.html b/templates/403.html
index b1d559c8..0f572060 100644
--- a/templates/403.html
+++ b/templates/403.html
@@ -1,123 +1,177 @@
-{% load static i18n %}
-
-
-
-
- Access Forbidden
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

-
-
-

-
Access Forbidden!
-
- Halt! Thou art endeavouring to trespass upon a realm not granted unto thee.
-
- granted unto thee.
-
-
Go Home
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+{% load i18n %}
+
+
+
+
+
+ 403 - Access Forbidden
+
+
+
+
+
+
+
+
+
403
+
{% trans "Access Forbidden" %}
+
{% trans "You do not have permission to view this page."%}
+
{% trans "Powered By Tenhal, Riyadh Saudi Arabia"%}
+
{% trans "Go Home" %}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/dealers/dealer_detail.html b/templates/dealers/dealer_detail.html
index 45a078b9..e7c504ba 100644
--- a/templates/dealers/dealer_detail.html
+++ b/templates/dealers/dealer_detail.html
@@ -61,7 +61,7 @@
-
{% trans 'last login'|capfirst %}
+ {% trans 'last login'|capfirst %}
{{ dealer.user.last_login|date:"D M d, Y H:i" }}
@@ -80,12 +80,12 @@
-
{% trans 'Default Address' %}
+ {% trans 'Contact Information' %}
-
{% trans 'Address' %}
+ {% trans 'Address' %}
{{ dealer.address }}
@@ -95,13 +95,13 @@
-
{% trans 'Email' %}
+ {% trans 'Email' %}
{{ dealer.user.email }}
-
{% trans 'Phone' %}
+ {% trans 'Phone' %}
{{ dealer.phone_number }}
diff --git a/templates/emails/expiration_reminder_ar.html b/templates/emails/expiration_reminder_ar.html
index 421aea38..0f9b3d27 100644
--- a/templates/emails/expiration_reminder_ar.html
+++ b/templates/emails/expiration_reminder_ar.html
@@ -13,6 +13,6 @@
مع أطيب التحيات،
- فريق {{ SITE_NAME }}
+ فريق تنحل