Skip to content

Commit

Permalink
Revert "DEBUG rollback of HSN code"
Browse files Browse the repository at this point in the history
This reverts commit d864972.
  • Loading branch information
ankush committed Jan 2, 2022
1 parent 0d28262 commit ede9e7e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions erpnext/regional/india/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ def add_hsn_sac_codes():
sac_codes = json.loads(f.read())
create_hsn_codes(sac_codes, code_field="sac_code")

# DEBUG
rollback_watcher = type('', (), {})()
rollback_watcher.on_rollback = lambda: frappe.throw("HSN codes getting rolled back")
frappe.local.rollback_observers.append(rollback_watcher)

if frappe.flags.in_test:
frappe.flags.created_hsn_codes = True

Expand Down

0 comments on commit ede9e7e

Please sign in to comment.