fix(multiple): syntax and patch
- syntax fix for using super class - check "All Departments" in department name with translations
This commit is contained in:
parent
47b82789ae
commit
12ec142a69
@ -16,7 +16,7 @@ class Account(NestedSet):
|
||||
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",
|
||||
|
@ -18,7 +18,7 @@ def execute():
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user