diff --git a/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py b/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py index 6588bc8ea36..d880caa3c73 100644 --- a/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py +++ b/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py @@ -46,7 +46,6 @@ class TestPOSInvoiceMergeLog(unittest.TestCase): self.assertFalse(pos_inv.consolidated_invoice == pos_inv3.consolidated_invoice) finally: - frappe.set_user("Administrator") frappe.db.sql("delete from `tabPOS Profile`") frappe.db.sql("delete from `tabPOS Invoice`") @@ -96,7 +95,6 @@ class TestPOSInvoiceMergeLog(unittest.TestCase): self.assertTrue(frappe.db.get_value("Sales Invoice", pos_inv_cn.consolidated_invoice, "is_return")) finally: - frappe.set_user("Administrator") frappe.db.sql("delete from `tabPOS Profile`") frappe.db.sql("delete from `tabPOS Invoice`") diff --git a/erpnext/regional/india/utils.py b/erpnext/regional/india/utils.py index 0a2cf489ad8..3637de438cd 100644 --- a/erpnext/regional/india/utils.py +++ b/erpnext/regional/india/utils.py @@ -826,7 +826,7 @@ def get_regional_round_off_accounts(company, account_list): gst_account_list = [] for account in ['cgst_account', 'sgst_account', 'igst_account']: - if account in gst_accounts.keys(): + if account in gst_accounts: gst_account_list += gst_accounts.get(account) account_list.extend(gst_account_list)