From 93a320716a1cac80de261f4ab64878bac4431d39 Mon Sep 17 00:00:00 2001 From: Faheedkhan Date: Tue, 8 Jul 2025 13:10:05 +0300 Subject: [PATCH] permissions issue in invoice_detail --- templates/ledger/coa_accounts/account_list.html | 2 +- templates/sales/invoices/invoice_detail.html | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/templates/ledger/coa_accounts/account_list.html b/templates/ledger/coa_accounts/account_list.html index 6923a48f..1f4450a6 100644 --- a/templates/ledger/coa_accounts/account_list.html +++ b/templates/ledger/coa_accounts/account_list.html @@ -11,7 +11,7 @@

{% trans "Accounts" %}

- {% if perms.django_ledger.create_chartofaccountmodel %} + {% if perms.django_ledger.add_chartofaccountmodel %} {% trans 'New Account' %} {% endif %}
diff --git a/templates/sales/invoices/invoice_detail.html b/templates/sales/invoices/invoice_detail.html index ed16bd65..2b9c616f 100644 --- a/templates/sales/invoices/invoice_detail.html +++ b/templates/sales/invoices/invoice_detail.html @@ -82,16 +82,23 @@
+ {% if perms.django_ledger.change_invoicemodel%} {% if invoice.invoice_status == 'in_review' %} {% endif %} {% if invoice.invoice_status == 'approved' %} + {% if perms.inventory.add_payment%} {% trans 'Record Payment' %} + {% endif %} {% endif %} {% if not invoice.is_paid %} + {% if perms.inventory.change_payment%} + {% endif %} {% endif %} + {% endif %} {% trans 'Preview' %} +
{{invoice.amount_owned}}