fix(multiple): syntax and patch
- syntax fix for using super class
- check "All Departments" in department name with translations
diff --git a/erpnext/accounts/doctype/account/account.py b/erpnext/accounts/doctype/account/account.py
index 635a8c2..5d504b9 100644
--- a/erpnext/accounts/doctype/account/account.py
+++ b/erpnext/accounts/doctype/account/account.py
@@ -16,7 +16,7 @@
if frappe.local.flags.ignore_on_update:
return
else:
- super().on_update()
+ super(Account, self).on_update()
def onload(self):
frozen_accounts_modifier = frappe.db.get_value("Accounts Settings", "Accounts Settings",
diff --git a/erpnext/patches/v11_0/create_department_records_for_each_company.py b/erpnext/patches/v11_0/create_department_records_for_each_company.py
index c03cf98..eb48eed 100644
--- a/erpnext/patches/v11_0/create_department_records_for_each_company.py
+++ b/erpnext/patches/v11_0/create_department_records_for_each_company.py
@@ -18,7 +18,7 @@
for department in departments:
# skip root node
- if department.name == _("All Departments"):
+ if _(department.name) == _("All Departments"):
continue
# for each company, create a copy of the doc