diff --git a/inventory/models.py b/inventory/models.py
index 9a04991f..96459291 100644
--- a/inventory/models.py
+++ b/inventory/models.py
@@ -2662,11 +2662,12 @@ class CustomGroup(models.Model):
"staff",
"schedule",
"activity",
+ "lead",
"opportunity",
"customer",
"organization",
"notes",
- "taska",
+ "tasks",
"activity",
],
other_perms=[
@@ -2692,7 +2693,8 @@ class CustomGroup(models.Model):
"carfinance",
"notes",
"tasks",
- "activity",],
+ "activity",
+ "vendor"],
other_perms=[
"view_car",
"view_carlocation",
@@ -2713,11 +2715,11 @@ class CustomGroup(models.Model):
"itemmodel",
"invoicemodel",
"vendormodel",
+
"journalentrymodel",
"purchaseordermodel",
"estimatemodel",
"customermodel",
- "vendormodel",
"ledgermodel",
"transactionmodel"
],
diff --git a/inventory/views.py b/inventory/views.py
index cf2dd08a..d79db58d 100644
--- a/inventory/views.py
+++ b/inventory/views.py
@@ -10234,7 +10234,6 @@ class BillModelActionForceMigrateView(BaseBillActionView):
@login_required
-@permission_required("inventory.view_poitemsuploaded", raise_exception=True)
def view_items_inventory(request, dealer_slug, entity_slug, po_pk):
get_object_or_404(models.Dealer, slug=dealer_slug)
po = PurchaseOrderModel.objects.get(pk=po_pk)
diff --git a/templates/bill/bill_detail.html b/templates/bill/bill_detail.html
index 56e78a9e..0ecab405 100644
--- a/templates/bill/bill_detail.html
+++ b/templates/bill/bill_detail.html
@@ -184,10 +184,12 @@
{% if bill_item.po_model_id %}
+ {% if perms.django_ledger.view_purchaseordermodel%}
{% trans 'View PO' %}
+ {% endif %}
{% endif %}
|
@@ -231,9 +233,11 @@
{% trans 'Bill Notes' %}
+ {% if perms.django_ledger.change_billmodel%}
{% include 'bill/includes/card_markdown.html' with style='card_1' title='' notes_html=bill.notes_html %}
+ {% endif %}
diff --git a/templates/bill/includes/card_bill.html b/templates/bill/includes/card_bill.html
index c50c4a24..bb799424 100644
--- a/templates/bill/includes/card_bill.html
+++ b/templates/bill/includes/card_bill.html
@@ -207,7 +207,7 @@
{% if perms.django_ledger.change_billmodel%}
{% trans 'Update' %}
-
+
{% if bill.can_draft %}