[fix] Ignore permissions while creating fiscal year automatically
This commit is contained in:
parent
f080003415
commit
0e2d1bd4ed
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user