Is there a way in the UI to filter by relative dates e.g. "today", "tomorrow" "today + 5 days" please?
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
Have a look at the filters for Leads Menu (when that feature is activated):
They use:
domain="[('my_activity_date_deadline', '[either less than, equal or greater than]', context_today().strftime('%Y-%m-%d'))]"
https://github.com/odoo/odoo/blob/15.0/addons/crm/views/crm_lead_views.xml#L681
Then have a look at the filters for Website Visitors:
It uses:
[('last_connection_datetime', '>', datetime.datetime.now() MINUS OR PLUS datetime.timedelta(days=CHANGE THE NUMBER HERE))]
https://github.com/odoo/odoo/blob/15.0/addons/website/views/website_visitor_views.xml#L261
By using a combination of the two approaches you should get every combination you want.
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ęPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
cze 25
|
1861 | ||
|
3
lip 25
|
3477 | ||
|
1
maj 25
|
1601 | ||
|
1
maj 25
|
1844 | ||
|
4
maj 25
|
2953 |