[fix] Ignore permissions while creating fiscal year automatically

This commit is contained in:
Nabin Hait 2015-12-28 13:02:45 +05:30
parent f080003415
commit 0e2d1bd4ed

View File

@ -62,7 +62,7 @@ def auto_create_fiscal_year():
start_year = cstr(new_fy.year_start_date.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