Odoo Help


"previous weekday" date filter?

A. Person
on 11/18/15, 1:48 PM 619 views

Is there any way to write a date filter for the previous weekday or business day?

Does this exist?

A. Person
on 11/30/15, 7:58 AM
On 7/3/16, 12:39 AM

I needed a filter that would show deliver orders that were due today or late. Here’s how I accomplished that:

<filter name=“today” string=“For Today” 
domain=“[(‘state’,'in’,('assigned’, 'partially_available’)),
('min_date’, ’&lt;=’,datetime.datetime.now().strftime(’%Y-%m-%d 23:23:59’))]”
help=“Pickings to be done today”/>

I've written a post that goes into a bit more detail here: http://haplesstechnoweenie.com/post/143806280450/add-for-today-date-filter-to-odoo-search-view

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/18/15, 1:48 PM
Seen: 619 times
Last updated: 7/3/16, 12:39 AM