Odoo Help

Welcome!

This community 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.

1

"previous weekday" date filter?

By
A. Person
on 11/18/15, 1:48 PM 277 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
0
Iso
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


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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