From fb1a58da6d71ca79ce390bae4438471a7719901c Mon Sep 17 00:00:00 2001 From: ismail Date: Tue, 1 Jul 2025 14:14:05 +0300 Subject: [PATCH] update --- .gitignore | 2 +- templates/sales/estimates/estimate_detail.html | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 8e0bbe6f..195cc59e 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,7 @@ car_inventory/settings.py car_inventory/__pycache__ haikalbot/temp_files_not_included scripts/dsrpipe.py -def_venv +dev_venv # Backup files # *.bak play.sh diff --git a/templates/sales/estimates/estimate_detail.html b/templates/sales/estimates/estimate_detail.html index 6e7cb4a6..4a185a5f 100644 --- a/templates/sales/estimates/estimate_detail.html +++ b/templates/sales/estimates/estimate_detail.html @@ -54,6 +54,7 @@ +
@@ -65,9 +66,7 @@ {% elif estimate.status == 'in_review' %} {% trans "In Review" %} {% elif estimate.status == 'approved' %} - {% if perms.django_ledger.change_estimatemodel %} - {% trans "Approved" %} - {% endif %} + {% trans "Approved" %} {% elif estimate.status == 'completed' %} {% trans "Completed" %} {% elif estimate.status == 'canceled' %} @@ -76,12 +75,15 @@
+ {% if estimate.status == 'draft' %} {% trans 'Send Quotation' %} {% elif estimate.status == 'in_review' %} - - {% elif estimate.status == 'approved' %} + {% if perms.django_ledger.can_approve_estimatemodel %} + + {% endif %} + {% elif estimate.status == 'approved' %} {% if estimate.sale_orders.first %}