I need a filter that will filter production orders only with date_planned_start in the current week.
Can you please advise.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I need a filter that will filter production orders only with date_planned_start in the current week.
Can you please advise.
please try to use this filter command in your search view
<filter string="This Week" name="date_planned_start" domain="[ ('date_planned_start', '>=', (datetime.datetime.combine(context_today() + relativedelta(weeks=-1,days=1,weekday=0), datetime.time(0,0,0)).to_utc()).strftime('%Y-%m-%d %H:%M:%S')), ('date_planned_start', '<', (datetime.datetime.combine(context_today() + relativedelta(days=1,weekday=0), datetime.time(0,0,0)).to_utc()).strftime('%Y-%m-%d %H:%M:%S'))]"/>
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ść | |
---|---|---|---|---|
|
2
mar 25
|
5954 | ||
|
0
gru 24
|
1064 | ||
|
2
sty 24
|
1757 | ||
Dynamic date in filters
Rozwiązane
|
|
4
kwi 25
|
11877 | |
|
0
lut 25
|
1447 |