ejaaz
2
Which form is this? Is this your custom form?
NCP
3
Please check and set it.
month = frappe.datetime.str_to_obj(frappe.datetime.get_today()).getMonth() + 1
year = frappe.datetime.str_to_obj(frappe.datetime.get_today()).getFullYear();
company = frappe.defaults.get_user_default("Company")
2 Likes