domain: server
language: python
class Filter class
Use value
property to get or set the value of the filter.
function on_view_form_created(item) {
item.filters.invoicedate1.value = new Date(new Date().setYear(new Date().getFullYear() - 1));
}