mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 21:19:19 +00:00
fix: gst permission for gst settings & hsn code (#20501)
* fix: gst permission for gst settings & hsn code * Fix: Typo Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
This commit is contained in:
@@ -79,9 +79,10 @@ def add_custom_roles_for_reports():
|
|||||||
def add_permissions():
|
def add_permissions():
|
||||||
for doctype in ('GST HSN Code', 'GST Settings'):
|
for doctype in ('GST HSN Code', 'GST Settings'):
|
||||||
add_permission(doctype, 'All', 0)
|
add_permission(doctype, 'All', 0)
|
||||||
add_permission(doctype, 'Accounts Manager', 0)
|
for role in ('Accounts Manager', 'System Manager', 'Item Manager', 'Stock Manager'):
|
||||||
update_permission_property(doctype, 'Accounts Manager', 0, 'write', 1)
|
add_permission(doctype, role, 0)
|
||||||
update_permission_property(doctype, 'Accounts Manager', 0, 'create', 1)
|
update_permission_property(doctype, role, 0, 'write', 1)
|
||||||
|
update_permission_property(doctype, role, 0, 'create', 1)
|
||||||
|
|
||||||
def add_print_formats():
|
def add_print_formats():
|
||||||
frappe.reload_doc("regional", "print_format", "gst_tax_invoice")
|
frappe.reload_doc("regional", "print_format", "gst_tax_invoice")
|
||||||
|
|||||||
Reference in New Issue
Block a user