fix(multiple): syntax and patch

- syntax fix for using super class
- check "All Departments" in department name with translations
This commit is contained in:
Ameya Shenoy 2018-09-26 14:05:48 +05:30
parent 47b82789ae
commit 12ec142a69
No known key found for this signature in database
GPG Key ID: AC016A555657D0A3
2 changed files with 2 additions and 2 deletions

View File

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

View File

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