Merge pull request #4548 from nabinhait/fix1

[fix] Ignore permissions while creating fiscal year automatically
This commit is contained in:
Nabin Hait 2015-12-28 14:23:01 +05:30
commit d5dedb1808

View File

@ -63,6 +63,6 @@ def auto_create_fiscal_year():
end_year = cstr(new_fy.year_end_date.year)
new_fy.year = start_year if start_year==end_year else (start_year + "-" + end_year)
new_fy.insert()
new_fy.insert(ignore_permissions=True)
except frappe.NameError:
pass