mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 16:12:53 +00:00
refactor: change uae vat settingplural
This commit is contained in:
@@ -145,7 +145,7 @@ def add_custom_roles_for_reports():
|
||||
|
||||
def add_permissions():
|
||||
"""Add Permissions for UAE VAT Settings and UAE VAT Account."""
|
||||
for doctype in ('UAE VAT Setting', 'UAE VAT Account'):
|
||||
for doctype in ('UAE VAT Settings', 'UAE VAT Account'):
|
||||
add_permission(doctype, 'All', 0)
|
||||
for role in ('Accounts Manager', 'Accounts User', 'System Manager'):
|
||||
add_permission(doctype, role, 0)
|
||||
|
||||
@@ -52,7 +52,7 @@ def get_tax_accounts(company):
|
||||
)
|
||||
|
||||
if not tax_accounts_list and not frappe.flags.in_test:
|
||||
frappe.throw(_(f'Please set Vat Accounts for Company: "{company}" in UAE VAT Setting'))
|
||||
frappe.throw(_(f'Please set Vat Accounts for Company: "{company}" in UAE VAT Settings'))
|
||||
for d in tax_accounts_list:
|
||||
for key, name in d.items():
|
||||
tax_accounts_dict[name] = name
|
||||
|
||||
Reference in New Issue
Block a user