How to add month and year in the dynamic filters?

Which form is this? Is this your custom form?

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