Is there any way to write a date filter for the previous weekday or business day?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
2
Odpowiedzi
2522
Widoki
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’, ’<=’,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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się
Does this exist?