refactor: change uae vat settingplural

This commit is contained in:
hasnain2808
2020-09-30 21:51:00 +05:30
parent 3294f86b92
commit 10a3a338b6
7 changed files with 10 additions and 10 deletions

View File

@@ -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)

View File

@@ -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