Add “For Today” Date filter to Odoo search view

I needed a filter that would show deliver orders that were due today or late. Here’s how I accomplished that:In the Sales/Reports/Sales view I needed the same thing, but just for sales today, not past. It is structured slightly differently: =’,’%Y-%m-%d 00:00:00’))]” help=“Filter on  today”/>What you’ll notice is the variable that is changing between the two. The first uses “min_date” and the second uses “date”. Also, for the first, I wanted everything that was overdue as well as what is due today so you use “<=” or less than or equal  (<=) than the last minute of the day where the second uses “>=“ or greater than or equal (>=) than the beginning of the day.

Read More Post